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

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

Loading…
Cancel
Save