Fix searchbar, remove all hellips from shortened shas

This commit is contained in:
Eston Bond
2010-11-12 16:08:09 -08:00
parent ae89b245ea
commit ee8d72a137
4 changed files with 12 additions and 3 deletions
@@ -401,6 +401,10 @@ a:hover, a:visited {
line-height: 1.6em;
margin-top: 2em;
}
.results #footer ul.actions li {
margin: 0 1em 0 0;
}
/* @control minibutton */
@@ -36,7 +36,7 @@ $(document).ready(function() {
e.preventDefault();
var commitSha = $(this).attr('rel');
var truncatedSha = commitSha.toString().substr(0, 7) + "…";
var truncatedSha = commitSha.toString().substr(0, 7);
// revert action
$.GollumDialog.init({
title: 'Revert to ' + truncatedSha + '?',
@@ -37,10 +37,10 @@
<td class="commit-name">
<span class="time-elapsed">{{date}}:</span>&nbsp;
{{message}}
[<a href="/{{escaped_name}}/{{id}}" title="View commit">{{id7}}&hellip;</a>]
[<a href="/{{escaped_name}}/{{id}}" title="View commit">{{id7}}</a>]
</td>
<td class="revert-action">
<a href="#" title="Revert to this change" rel="{{id}}">Revert to <span>{{id7}}&hellip;</span></a>
<a href="#" title="Revert to this change" rel="{{id}}">Revert to <span>{{id7}}</span></a>
</td>
</tr>
{{/versions}}
@@ -28,6 +28,11 @@
</p>
{{/no_results}}
</div>
<div id="footer">
<ul class="actions">
<li class="minibutton"><a href="#">Back to Top</a></li>
</ul>
</div>
</div>