Modified: branches/packs/app/views/blobs/show.rhtml (3617 => 3618)
--- branches/packs/app/views/blobs/show.rhtml 2013-08-06 10:03:22 UTC (rev 3617)
+++ branches/packs/app/views/blobs/show.rhtml 2013-08-13 13:05:43 UTC (rev 3618)
@@ -49,22 +49,34 @@
<%= render(:partial => "contributions/version_selector", :locals => { :resource => @blob, :version => @version, :path => :blob_version_path }) %>
<div class="contribution_version_inner_box">
- <p>
- <b>Title:</b>
- <span class="title"><%=h @version.title %></span>
- </p>
+
+ <table class="metadata">
+
+ <tr>
+ <td>Title</td>
+ <td><%=h @version.title %></td>
+ </tr>
- <p>
- <b>File name:</b>
- <%=h @version.local_name %>
- </p>
+ <tr>
+ <td>File name</td>
+ <td><%=h @version.local_name %></td>
+ </tr>
- <% if @version.content_type %>
- <p>
- <b>File type:</b>
- <%=h @version.content_type.title %>
- </p>
- <% end %>
+ <% if Authorization.check('download', @blob, current_user) %>
+ <tr>
+ <td>SHA1</td>
+ <td class="sha1"><%=h @version.content_blob.sha1 %></td>
+ </tr>
+ <% end %>
+
+ <% if @version.content_type %>
+ <tr>
+ <td>Content type</td>
+ <td class="content_type"><%=h @version.content_type.title %></td>
+ </tr>
+ <% end %>
+
+ </table>
<br/>
Modified: branches/packs/public/stylesheets/styles.css (3617 => 3618)
--- branches/packs/public/stylesheets/styles.css 2013-08-06 10:03:22 UTC (rev 3617)
+++ branches/packs/public/stylesheets/styles.css 2013-08-13 13:05:43 UTC (rev 3618)
@@ -2641,3 +2641,17 @@
top: -10px;
width: 0;
}
+
+TABLE.metadata TD:first-child {
+ font-weight: bold;
+}
+
+TABLE.metadata TD {
+ text-align: left;
+}
+
+TABLE.metadata TD.sha1,
+TABLE.metadata TD.content_type {
+ font-family: monospace;
+}
+