Commit 9305ef89 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Remove old methods and classes

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent f554aa38
This diff is collapsed.
......@@ -262,7 +262,6 @@ ul.notes {
}
.new_note {
display: none;
.buttons {
float: left;
margin-top: 8px;
......
module NotesHelper
# Helps to distinguish e.g. commit notes in mr notes list
def note_for_main_target?(note)
(@target_type.camelize == note.noteable_type && !note.for_diff_line?)
(@noteable.class.name == note.noteable_type && !note.for_diff_line?)
end
def note_target_fields
......@@ -21,14 +21,6 @@ module NotesHelper
end
end
def loading_more_notes?
params[:loading_more].present?
end
def loading_new_notes?
params[:loading_new].present?
end
def note_timestamp(note)
# Shows the created at time and the updated at time if different
ts = "#{time_ago_with_tooltip(note.created_at, 'bottom', 'note_created_ago')} ago"
......@@ -41,4 +33,13 @@ module NotesHelper
end
ts.html_safe
end
def noteable_json(noteable)
{
id: noteable.id,
class: noteable.class.name,
resources: noteable.class.table_name,
project_id: noteable.project.id,
}.to_json
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment