Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2011-10-17 01:30:48 +0400
committerDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2011-10-17 01:30:48 +0400
commit9de8e52d5493b913427708d871613b0609590aa8 (patch)
treec0290a072e26c868afdc1472dbcc816df7996be4 /app/views
parent64597de28c9dde03a2dbbc9e12099368b6dc326b (diff)
fixed #132
Diffstat (limited to 'app/views')
-rw-r--r--app/views/commits/_commits.html.haml2
-rw-r--r--app/views/commits/show.html.haml2
-rw-r--r--app/views/projects/_tree_item.html.haml2
3 files changed, 3 insertions, 3 deletions
diff --git a/app/views/commits/_commits.html.haml b/app/views/commits/_commits.html.haml
index 4eebb83aa15..5a3ba3a7f46 100644
--- a/app/views/commits/_commits.html.haml
+++ b/app/views/commits/_commits.html.haml
@@ -11,7 +11,7 @@
= image_tag "no_avatar.png", :class => "left", :width => 40, :style => "padding-right:5px;"
%p
%strong
- = commit.message.length > 60 ? (commit.message[0..59] + "...") : commit.message
+ = truncate_commit_message(commit)
= link_to "Browse Code", tree_project_path(@project, :commit_id => commit.id), :class => "lite_button", :style => "float:right"
= link_to truncate(commit.id.to_s, :length => 16), project_commit_path(@project, :id => commit.id), :class => "lite_button", :style => "width:120px;float:right"
%span
diff --git a/app/views/commits/show.html.haml b/app/views/commits/show.html.haml
index 147aaafb855..a2c9149d06c 100644
--- a/app/views/commits/show.html.haml
+++ b/app/views/commits/show.html.haml
@@ -1,5 +1,5 @@
%h3
- = "[ #{@commit.committer} ] #{truncate @commit.message, :length => 80}"
+ = "[ #{@commit.committer} ] #{truncate_commit_message(@commit, 80)}"
-#= link_to 'Back', project_commits_path(@project), :class => "button"
%table.round-borders
%tr
diff --git a/app/views/projects/_tree_item.html.haml b/app/views/projects/_tree_item.html.haml
index 9ba33c1ef88..4ebcfbefeab 100644
--- a/app/views/projects/_tree_item.html.haml
+++ b/app/views/projects/_tree_item.html.haml
@@ -12,4 +12,4 @@
= time_ago_in_words(content_commit.committed_date)
ago
%td
- = link_to truncate(content_commit.message, :length => 40), project_commit_path(@project, content_commit)
+ = link_to truncate_commit_message(content_commit, 40), project_commit_path(@project, content_commit)