Unity buttons style

This commit is contained in:
uu59 2014-07-22 13:59:32 +09:00
parent 3d6bf0358f
commit fd21086dfc
4 changed files with 23 additions and 23 deletions

View File

@ -1,7 +1,7 @@
- page_title t('.page_title', label: @fluentd.label) - page_title t('.page_title', label: @fluentd.label)
= link_to t('.raw_log_link'), raw_log_fluentd_path(@fluentd) = link_to t('.raw_log_link'), raw_log_fluentd_path(@fluentd), class: "btn btn-primary"
%h3= t('.recent_errors', days: @error_duration_days) %h3= t('.recent_errors', days: @error_duration_days)

View File

@ -3,7 +3,7 @@
.row .row
.col-lg-12 .col-lg-12
%p %p
= link_to icon('fa-pencil') << t("terms.edit"), edit_fluentd_setting_path(@fluentd), class: "btn btn-primary" = link_to t("terms.edit"), edit_fluentd_setting_path(@fluentd), class: "btn btn-primary"
%pre %pre
= preserve do = preserve do
= @config = @config

View File

@ -11,7 +11,7 @@
.row .row
.col-lg-12 .col-lg-12
%p %p
=link_to misc_download_info_path, class: "btn btn-default" do =link_to misc_download_info_path, class: "btn btn-primary" do
= t('.download_system_information') = t('.download_system_information')
.row .row

View File

@ -3,35 +3,16 @@
%table{class: "table table-striped table-hover", id: "plugins-table"} %table{class: "table table-striped table-hover", id: "plugins-table"}
%thead %thead
%tr %tr
%th.col-lg-1
%th.col-lg-1= t('.name') %th.col-lg-1= t('.name')
%th{width: 160}= t('.authors') %th{width: 160}= t('.authors')
%th{width: 320}= t('.summary') %th{width: 320}= t('.summary')
%th.col-lg-1= t('.installed_version') %th.col-lg-1= t('.installed_version')
%th.col-lg-1= t('.latest_version') %th.col-lg-1= t('.latest_version')
%th.col-lg-1 %th.col-lg-1
%th.col-lg-1
%tbody %tbody
- @plugins.each do |plugin| - @plugins.each do |plugin|
%tr %tr
%td
%label{for: "plugin_#{plugin.gem_name}"}
= plugin.gem_name
%td
= plugin.authors
%td
= plugin.summary
%td
= plugin.installed_version
%td
= plugin.latest_version
%td
- if plugin.latest_version?
= t('.latest_version')
- else
= form_tag(upgrade_plugins_path, method: :patch) do
= hidden_field_tag("plugins[name]", plugin.gem_name)
= hidden_field_tag("plugins[version]", plugin.latest_version)
= submit_tag t('.install_latest_version'), class: "btn btn-primary"
%td %td
%button{class: "btn btn-danger", data: {toggle: "modal", target:" #plugin-modal-#{plugin.gem_name}"}} %button{class: "btn btn-danger", data: {toggle: "modal", target:" #plugin-modal-#{plugin.gem_name}"}}
= t ".uninstall" = t ".uninstall"
@ -51,6 +32,25 @@
Close Close
= hidden_field_tag("plugins[]", plugin.gem_name) = hidden_field_tag("plugins[]", plugin.gem_name)
= submit_tag t('.uninstall'), class: "btn btn-danger" = submit_tag t('.uninstall'), class: "btn btn-danger"
%td
%label{for: "plugin_#{plugin.gem_name}"}
= plugin.gem_name
%td
= plugin.authors
%td
= plugin.summary
%td
= plugin.installed_version
%td
= plugin.latest_version
%td
- if plugin.latest_version?
= t('.latest_version')
- else
= form_tag(upgrade_plugins_path, method: :patch) do
= hidden_field_tag("plugins[name]", plugin.gem_name)
= hidden_field_tag("plugins[version]", plugin.latest_version)
= submit_tag t('.install_latest_version'), class: "btn btn-primary"
:javascript :javascript
$(document).ready(function() { $(document).ready(function() {