Doc attributes display
This commit is contained in:
parent
31334f4637
commit
0f209fe16d
@ -108,7 +108,11 @@
|
|||||||
<% if revision.description.present? %>
|
<% if revision.description.present? %>
|
||||||
<div class="status attribute">
|
<div class="status attribute">
|
||||||
<%= content_tag :div, l(:label_description), :class => 'label' %>
|
<%= 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>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<div class="status attribute">
|
<div class="status attribute">
|
||||||
@ -136,7 +140,11 @@
|
|||||||
<% if revision.comment.present? %>
|
<% if revision.comment.present? %>
|
||||||
<div class="status attribute">
|
<div class="status attribute">
|
||||||
<%= content_tag :div, l(:label_comment), :class => 'label' %>
|
<%= 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>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -136,10 +136,17 @@
|
|||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div.dmsf_revision_inner_box .attribute {
|
||||||
|
padding-left: 180px;
|
||||||
|
clear: left;
|
||||||
|
min-height: 1.8em;
|
||||||
|
}
|
||||||
|
|
||||||
div.dmsf_revision_inner_box .attribute .label {
|
div.dmsf_revision_inner_box .attribute .label {
|
||||||
font-weight:bold;
|
|
||||||
float: left;
|
|
||||||
width: 170px;
|
width: 170px;
|
||||||
|
margin-left: -180px;
|
||||||
|
font-weight: bold;
|
||||||
|
float: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dmsf_id_box {
|
.dmsf_id_box {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user