myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [3618] branches/packs: adjusted the metadata view


From: noreply
Subject: [myexperiment-hackers] [3618] branches/packs: adjusted the metadata view for files
Date: Tue, 13 Aug 2013 13:05:44 +0000 (UTC)

Revision
3618
Author
dgc
Date
2013-08-13 13:05:43 +0000 (Tue, 13 Aug 2013)

Log Message

adjusted the metadata view for files

Modified Paths

Diff

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;
+}
+

reply via email to

[Prev in Thread] Current Thread [Next in Thread]