lib/bhook/theme/page.erb in bhook-0.1.3 vs lib/bhook/theme/page.erb in bhook-0.1.4
- old
+ new
@@ -38,10 +38,17 @@
table td, table th {
padding: 0.1em 1em 0.1em 1em;
border: 1px solid #bbbbbb;
}
+
+ blockquote {
+ border-left: 10px solid #cccccc;
+ background: #eeeeee;
+ display: inline-block;
+ padding: 1em;
+ }
</style>
<title><%= src_title -%></title>
</head>
<body>
<div class="body container">
@@ -50,10 +57,16 @@
<%= output %>
</div>
</div>
<div class="footer d-flex justify-content-center">
<div>
- v. <%= src_file_sha -%>, <%= src_file_date -%> © <a href="https://sidu.in">Sidu Ponnappa</a>
+<% short_sha = src_file_sha ? src_file_sha[0..7] : nil -%>
+<% if file_url && short_sha -%>
+ v. <a href="<%= file_url -%>"><%= short_sha -%></a>,
+<% elsif short_sha -%>
+ v. <%= short_sha -%>,
+<% end -%>
+ <%= src_file_date -%> © <a href="https://sidu.in">Sidu Ponnappa</a>
</div>
</div>
</div>
<script type='text/javascript'>
var _gaq = _gaq || [];