mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-19 05:21:01 +02:00
Unity buttons style
This commit is contained in:
parent
3d6bf0358f
commit
fd21086dfc
@ -1,7 +1,7 @@
|
||||
|
||||
- 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)
|
||||
|
@ -3,7 +3,7 @@
|
||||
.row
|
||||
.col-lg-12
|
||||
%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
|
||||
= preserve do
|
||||
= @config
|
||||
|
@ -11,7 +11,7 @@
|
||||
.row
|
||||
.col-lg-12
|
||||
%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')
|
||||
|
||||
.row
|
||||
|
@ -3,35 +3,16 @@
|
||||
%table{class: "table table-striped table-hover", id: "plugins-table"}
|
||||
%thead
|
||||
%tr
|
||||
%th.col-lg-1
|
||||
%th.col-lg-1= t('.name')
|
||||
%th{width: 160}= t('.authors')
|
||||
%th{width: 320}= t('.summary')
|
||||
%th.col-lg-1= t('.installed_version')
|
||||
%th.col-lg-1= t('.latest_version')
|
||||
%th.col-lg-1
|
||||
%th.col-lg-1
|
||||
%tbody
|
||||
- @plugins.each do |plugin|
|
||||
%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
|
||||
%button{class: "btn btn-danger", data: {toggle: "modal", target:" #plugin-modal-#{plugin.gem_name}"}}
|
||||
= t ".uninstall"
|
||||
@ -51,6 +32,25 @@
|
||||
Close
|
||||
= hidden_field_tag("plugins[]", plugin.gem_name)
|
||||
= 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
|
||||
$(document).ready(function() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user