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
@@ -402,6 +402,10 @@ a:hover, a:visited {
margin-top: 2em; margin-top: 2em;
} }
.results #footer ul.actions li {
margin: 0 1em 0 0;
}
/* @control minibutton */ /* @control minibutton */
ul.actions { ul.actions {
@@ -36,7 +36,7 @@ $(document).ready(function() {
e.preventDefault(); e.preventDefault();
var commitSha = $(this).attr('rel'); var commitSha = $(this).attr('rel');
var truncatedSha = commitSha.toString().substr(0, 7) + "…"; var truncatedSha = commitSha.toString().substr(0, 7);
// revert action // revert action
$.GollumDialog.init({ $.GollumDialog.init({
title: 'Revert to ' + truncatedSha + '?', title: 'Revert to ' + truncatedSha + '?',
@@ -37,10 +37,10 @@
<td class="commit-name"> <td class="commit-name">
<span class="time-elapsed">{{date}}:</span>&nbsp; <span class="time-elapsed">{{date}}:</span>&nbsp;
{{message}} {{message}}
[<a href="/{{escaped_name}}/{{id}}" title="View commit">{{id7}}&hellip;</a>] [<a href="/{{escaped_name}}/{{id}}" title="View commit">{{id7}}</a>]
</td> </td>
<td class="revert-action"> <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> </td>
</tr> </tr>
{{/versions}} {{/versions}}
@@ -28,6 +28,11 @@
</p> </p>
{{/no_results}} {{/no_results}}
</div>
<div id="footer">
<ul class="actions">
<li class="minibutton"><a href="#">Back to Top</a></li>
</ul>
</div> </div>
</div> </div>