fixed #132
This commit is contained in:
parent
9265de3d25
commit
bcf55312f7
4 changed files with 10 additions and 3 deletions
|
@ -21,4 +21,11 @@ module CommitsHelper
|
|||
link_to "More", project_commits_path(@project, :offset => offset.to_i + limit.to_i, :limit => limit),
|
||||
:remote => true, :class => "lite_button vm", :style => "text-align:center; width:930px; ", :id => "more-commits-link"
|
||||
end
|
||||
|
||||
def truncate_commit_message(commit, size = 60)
|
||||
truncate(commit.message, :length => size)
|
||||
# if special characters occurs
|
||||
rescue
|
||||
commit.message.length > size ? (commit.message[0..(size - 1)] + "...") : commit.message
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue