Doc attributes display

This commit is contained in:
Karel Picman 2017-03-21 09:52:35 +01:00
parent 31334f4637
commit 0f209fe16d
2 changed files with 19 additions and 4 deletions

View File

@ -108,7 +108,11 @@
<% if revision.description.present? %>
<div class="status attribute">
<%= content_tag :div, l(:label_description), :class => 'label' %>
<%= content_tag :div, textilizable(revision.description), :class => 'wiki, value' %>
<% text = textilizable(revision.description) %>
<% if text =~ /^<p>(.*)<\/p>$/ %>
<% text = $1 %>
<% end %>
<%= content_tag :div, text.html_safe, :class => 'value wiki' %>
</div>
<% end %>
<div class="status attribute">
@ -136,7 +140,11 @@
<% if revision.comment.present? %>
<div class="status attribute">
<%= content_tag :div, l(:label_comment), :class => 'label' %>
<%= content_tag :div, textilizable(revision.comment), :class => 'value wiki' %>
<% text = textilizable(revision.comment) %>
<% if text =~ /^<p>(.*)<\/p>$/ %>
<% text = $1 %>
<% end %>
<%= content_tag :div, text.html_safe, :class => 'value wiki' %>
</div>
<% end %>
</div>

View File

@ -136,10 +136,17 @@
padding: 10px;
}
div.dmsf_revision_inner_box .attribute {
padding-left: 180px;
clear: left;
min-height: 1.8em;
}
div.dmsf_revision_inner_box .attribute .label {
font-weight:bold;
float: left;
width: 170px;
margin-left: -180px;
font-weight: bold;
float: left;
}
.dmsf_id_box {