Remove if_user and similar methods
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 16 May 2018 05:05:20 +0000 (13:05 +0800)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 16 May 2018 05:05:20 +0000 (13:05 +0800)
commite1c62f1bf21fa80d5873c0a75583450ae88b16d7
tree5c9b4dc27a7018fb1e5bf94840cba8121067b9a6
parent5da01b92c563e412fe67962a5cea90bc54df5507
Remove if_user and similar methods

Rather than hiding features based on CSS, just avoid including them
in the output. Fixes #1862
13 files changed:
app/assets/stylesheets/common.scss
app/helpers/application_helper.rb
app/views/browse/changeset.html.erb
app/views/diary_entry/_diary_comment.html.erb
app/views/diary_entry/_diary_entry.html.erb
app/views/diary_entry/list.html.erb
app/views/diary_entry/view.html.erb
app/views/layouts/_head.html.erb
app/views/traces/list.html.erb
app/views/traces/view.html.erb
test/controllers/diary_entry_controller_test.rb
test/helpers/application_helper_test.rb
test/integration/user_changeset_comments_test.rb