From 59406d6c43d13576c4a563adf958b8da6d57865d Mon Sep 17 00:00:00 2001 From: Toru Takahashi Date: Fri, 22 Jun 2018 03:22:25 +0900 Subject: [PATCH] [phase-15]add css file for show term --- app/views/glossary_terms/show.html.erb | 24 ++++++++++++++---------- assets/stylesheets/glossary.css | 4 ++++ 2 files changed, 18 insertions(+), 10 deletions(-) create mode 100644 assets/stylesheets/glossary.css diff --git a/app/views/glossary_terms/show.html.erb b/app/views/glossary_terms/show.html.erb index 60b7229..51253c7 100644 --- a/app/views/glossary_terms/show.html.erb +++ b/app/views/glossary_terms/show.html.erb @@ -1,3 +1,7 @@ +<% content_for :header_tags do %> + <%= stylesheet_link_tag 'glossary', plugin: 'redmine_glossary' %> +<% end %> +
<%= link_to_if_authorized l(:button_edit), { controller: :glossary_terms, action: :edit, project_id: @project }, @@ -14,41 +18,41 @@

<%= @term.name %>

- +
- + - + - + - + - + - + - + - + - +
<%=l :field_name_en %><%=l :field_name_en %>: <%= @term.name_en %>
<%=l :field_rubi %><%=l :field_rubi %>: <%= @term.rubi %>
<%=l :field_abbr_whole %><%=l :field_abbr_whole %>: <%= @term.abbr_whole %>
<%=l :field_datatype %><%=l :field_datatype %>: <%= @term.datatype %>
<%=l :field_codename %><%=l :field_codename %>: <%= @term.codename %>
<%=l :field_category %><%=l :field_category %>: <%= @term.category.try!(:name) %>
<%=l :field_description %><%=l :field_description %>:
<%= textilizable @term, :description %>
<%=l :field_created_on %><%=l :field_created_on %>: <%= format_time(@term.created_at) %>
<%=l :field_updated_on %><%=l :field_updated_on %>: <%= format_time(@term.updated_at) %>
diff --git a/assets/stylesheets/glossary.css b/assets/stylesheets/glossary.css new file mode 100644 index 0000000..3311cff --- /dev/null +++ b/assets/stylesheets/glossary.css @@ -0,0 +1,4 @@ +table.term th { + text-align: right; + vertical-align: top; +}