From ee8d72a137463ec36169f8b289d768a9141c6976 Mon Sep 17 00:00:00 2001
From: Eston Bond
Date: Fri, 12 Nov 2010 16:08:09 -0800
Subject: [PATCH] Fix searchbar, remove all hellips from shortened shas
---
lib/gollum/frontend/public/css/gollum.css | 4 ++++
lib/gollum/frontend/public/javascript/gollum.js | 2 +-
lib/gollum/frontend/templates/history.mustache | 4 ++--
lib/gollum/frontend/templates/search.mustache | 5 +++++
4 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/lib/gollum/frontend/public/css/gollum.css b/lib/gollum/frontend/public/css/gollum.css
index 75799d55..e4153f9e 100644
--- a/lib/gollum/frontend/public/css/gollum.css
+++ b/lib/gollum/frontend/public/css/gollum.css
@@ -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 */
diff --git a/lib/gollum/frontend/public/javascript/gollum.js b/lib/gollum/frontend/public/javascript/gollum.js
index 6bb0ec5e..9e0305c7 100644
--- a/lib/gollum/frontend/public/javascript/gollum.js
+++ b/lib/gollum/frontend/public/javascript/gollum.js
@@ -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 + '?',
diff --git a/lib/gollum/frontend/templates/history.mustache b/lib/gollum/frontend/templates/history.mustache
index c7c6a7d4..62b6cd67 100644
--- a/lib/gollum/frontend/templates/history.mustache
+++ b/lib/gollum/frontend/templates/history.mustache
@@ -37,10 +37,10 @@
|
{{date}}:
{{message}}
- [{{id7}}…]
+ [{{id7}}]
|
- Revert to {{id7}}…
+ Revert to {{id7}}
|
{{/versions}}
diff --git a/lib/gollum/frontend/templates/search.mustache b/lib/gollum/frontend/templates/search.mustache
index 360ef743..1d5a7d4e 100644
--- a/lib/gollum/frontend/templates/search.mustache
+++ b/lib/gollum/frontend/templates/search.mustache
@@ -28,6 +28,11 @@
{{/no_results}}
+
+