Improves styles for milestones documents

This commit is contained in:
decabeza
2018-11-27 17:10:17 +01:00
parent be199eedec
commit 6f1e7abedd
2 changed files with 19 additions and 12 deletions

View File

@@ -2523,7 +2523,7 @@ table {
border-radius: rem-calc(5);
display: block;
margin: $line-height / 2 0;
padding: 0 $line-height / 2;
padding: $line-height / 2;
position: relative;
.icon-document {

View File

@@ -29,17 +29,24 @@
</p>
<% if milestone.documents.present? %>
<div class="document-link text-center">
<p>
<span class="icon-document"></span>&nbsp;
<strong><%= t("shared.documentation") %></strong>
</p>
<% milestone.documents.each do |document| %>
<%= link_to document.title,
document.attachment.url,
target: "_blank",
rel: "nofollow" %><br>
<% end %>
<div class="documents">
<div class="document-link text-left small">
<p>
<strong><%= t("shared.documentation") %></strong>
</p>
<% milestone.documents.each do |document| %>
<%= link_to document.title,
document.attachment.url,
target: "_blank",
rel: "nofollow" %><br>
<small>
<%= document.humanized_content_type %>&nbsp;|&nbsp;
<%= number_to_human_size(document.attachment_file_size, precision: 2) %>
</small>
<br>
<% end %>
</div>
</div>
<% end %>