[phase-15]add css file for show term
This commit is contained in:
parent
0e0aa07131
commit
59406d6c43
@ -1,3 +1,7 @@
|
|||||||
|
<% content_for :header_tags do %>
|
||||||
|
<%= stylesheet_link_tag 'glossary', plugin: 'redmine_glossary' %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
<div class="contextual">
|
<div class="contextual">
|
||||||
<%= link_to_if_authorized l(:button_edit),
|
<%= link_to_if_authorized l(:button_edit),
|
||||||
{ controller: :glossary_terms, action: :edit, project_id: @project },
|
{ controller: :glossary_terms, action: :edit, project_id: @project },
|
||||||
@ -14,41 +18,41 @@
|
|||||||
|
|
||||||
<h3><%= @term.name %></h3>
|
<h3><%= @term.name %></h3>
|
||||||
|
|
||||||
<table>
|
<table class="term">
|
||||||
<tr>
|
<tr>
|
||||||
<th><%=l :field_name_en %></th>
|
<th><%=l :field_name_en %>:</th>
|
||||||
<td><%= @term.name_en %></td>
|
<td><%= @term.name_en %></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th><%=l :field_rubi %></th>
|
<th><%=l :field_rubi %>:</th>
|
||||||
<td><%= @term.rubi %></td>
|
<td><%= @term.rubi %></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th><%=l :field_abbr_whole %></th>
|
<th><%=l :field_abbr_whole %>:</th>
|
||||||
<td><%= @term.abbr_whole %></td>
|
<td><%= @term.abbr_whole %></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th><%=l :field_datatype %></th>
|
<th><%=l :field_datatype %>:</th>
|
||||||
<td><%= @term.datatype %></td>
|
<td><%= @term.datatype %></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th><%=l :field_codename %></th>
|
<th><%=l :field_codename %>:</th>
|
||||||
<td><%= @term.codename %></td>
|
<td><%= @term.codename %></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th><%=l :field_category %></th>
|
<th><%=l :field_category %>:</th>
|
||||||
<td><%= @term.category.try!(:name) %>
|
<td><%= @term.category.try!(:name) %>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th><%=l :field_description %></th>
|
<th><%=l :field_description %>:</th>
|
||||||
<td><div class="wiki"><%= textilizable @term, :description %></div></td>
|
<td><div class="wiki"><%= textilizable @term, :description %></div></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th><%=l :field_created_on %></th>
|
<th><%=l :field_created_on %>:</th>
|
||||||
<td><%= format_time(@term.created_at) %></td>
|
<td><%= format_time(@term.created_at) %></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th><%=l :field_updated_on %></th>
|
<th><%=l :field_updated_on %>:</th>
|
||||||
<td><%= format_time(@term.updated_at) %></td>
|
<td><%= format_time(@term.updated_at) %></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
4
assets/stylesheets/glossary.css
Normal file
4
assets/stylesheets/glossary.css
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
table.term th {
|
||||||
|
text-align: right;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user