system preference
This commit is contained in:
parent
64101109dd
commit
7d077a92a5
|
@ -9,7 +9,7 @@
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div class="tab-pane active in" id="summary">
|
<div class="tab-pane active in" id="summary">
|
||||||
<h2><%= I18n.t("site.system_preference_.summary.disk_space") %>:</h2>
|
<h2><%= I18n.t("site.system_preference_.summary.disk_space") %>:</h2>
|
||||||
<%= content_tag :p,@site.disk_space %>
|
<%= content_tag :p,@site.disk_space.gsub(/\n/,"<br />").html_safe if @site.disk_space %>
|
||||||
<h2><%= I18n.t("site.system_preference_.summary.code_update_at") %>: </h2>
|
<h2><%= I18n.t("site.system_preference_.summary.code_update_at") %>: </h2>
|
||||||
<% @site.system_package_info.each do |index,value| %>
|
<% @site.system_package_info.each do |index,value| %>
|
||||||
<h2><%= index.titleize %> <%= I18n.t("site.system_preference_.summary.version") %>:</h2>
|
<h2><%= index.titleize %> <%= I18n.t("site.system_preference_.summary.version") %>:</h2>
|
||||||
|
@ -20,7 +20,7 @@
|
||||||
<div class="tab-pane" id="commits">
|
<div class="tab-pane" id="commits">
|
||||||
<% if @git_commit_list_file %>
|
<% if @git_commit_list_file %>
|
||||||
<% @git_commit_list_file.lines do |line|%>
|
<% @git_commit_list_file.lines do |line|%>
|
||||||
<%= (line + "<br/>").html_safe %>
|
<%= line %><br/>
|
||||||
<% end%>
|
<% end%>
|
||||||
<% else %>
|
<% else %>
|
||||||
<div class="well"><%= I18n.t("site.system_preference_.summary.no_data") %></div>
|
<div class="well"><%= I18n.t("site.system_preference_.summary.no_data") %></div>
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
<div class="tab-pane" id="backups">
|
<div class="tab-pane" id="backups">
|
||||||
<%if @db_backup_list_file %>
|
<%if @db_backup_list_file %>
|
||||||
<% @db_backup_list_file.lines do |line|%>
|
<% @db_backup_list_file.lines do |line|%>
|
||||||
<%=(line + "<br/>").html_safe %>
|
<%=line %><br/>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<div class="well"><%= I18n.t("site.system_preference_.summary.no_data") %></div>
|
<div class="well"><%= I18n.t("site.system_preference_.summary.no_data") %></div>
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
<div class="tab-pane" id="resque_logs">
|
<div class="tab-pane" id="resque_logs">
|
||||||
<%if @db_backup_list_file %>
|
<%if @db_backup_list_file %>
|
||||||
<% @resque_logs_file.lines do |line|%>
|
<% @resque_logs_file.lines do |line|%>
|
||||||
<%=(line + "<br/>").html_safe %>
|
<%=line %><br/>
|
||||||
<% end if @resque_logs_file%>
|
<% end if @resque_logs_file%>
|
||||||
<%else %>
|
<%else %>
|
||||||
<div class="well"><%= I18n.t("site.system_preference_.summary.no_data") %></div>
|
<div class="well"><%= I18n.t("site.system_preference_.summary.no_data") %></div>
|
||||||
|
|
|
@ -7,7 +7,7 @@ module OrbitSystemPreference
|
||||||
DefaultDiskSpaceLimit = 3 #in GB
|
DefaultDiskSpaceLimit = 3 #in GB
|
||||||
module SystemPackage
|
module SystemPackage
|
||||||
MongodbVersion = "mongod --version"
|
MongodbVersion = "mongod --version"
|
||||||
NginxVersion = "nginx -V"
|
NginxVersion = "nginx -V 2>&1"
|
||||||
SystemVersion = "uname -a"
|
SystemVersion = "uname -a"
|
||||||
end
|
end
|
||||||
end
|
end
|
|
@ -396,7 +396,7 @@ zh_tw:
|
||||||
tab_backups: 備份記錄
|
tab_backups: 備份記錄
|
||||||
tab_commits: 程式版本
|
tab_commits: 程式版本
|
||||||
tab_summary: 總覽
|
tab_summary: 總覽
|
||||||
tab_logs: 登錄檔
|
tab_logs: 排程工作日誌
|
||||||
summary:
|
summary:
|
||||||
code_update_at: 程式更新紀錄
|
code_update_at: 程式更新紀錄
|
||||||
disk_space: 硬碟空間
|
disk_space: 硬碟空間
|
||||||
|
|
Reference in New Issue