remove superfluous bullets from revision overview

pull/2823/head
Florian Kraft 10 years ago
parent eed7e3b9d9
commit 60e499636e
  1. 2
      app/assets/stylesheets/scm.css.sass
  2. 10
      lib/open_project/object_linking.rb

@ -32,6 +32,7 @@
@import fonts/openproject_icon_font
div.changeset-changes ul
list-style-type: none
margin: 0
padding: 0
> ul
@ -73,6 +74,7 @@ li.change
content: " - "
#changes-legend
list-style-type: none
float: right
font-size: 0.8em
margin: 0

@ -75,11 +75,11 @@ module OpenProject
# Options:
# * :text - Link text (default to the formatted revision)
def link_to_revision(revision, project, options = {})
text = options.delete(:text) || format_revision(revision)
rev = revision.respond_to?(:identifier) ? revision.identifier : revision
url_options = { controller: '/repositories', action: 'revision', project_id: project, rev: rev }
html_options = { title: l(:label_revision_id, format_revision(revision)) }.merge options
link_to(h(text), url_options, html_options)
text = options.delete(:text) || format_revision(revision)
rev = revision.respond_to?(:identifier) ? revision.identifier : revision
url_opts = { controller: '/repositories', action: 'revision', project_id: project, rev: rev }
html_options = { title: l(:label_revision_id, format_revision(revision)) }.merge(options)
link_to(h(text), url_opts, html_options)
end
# Generates a link to a message

Loading…
Cancel
Save