diff options
| author | Riyad Preukschas <riyad@informatik.uni-bremen.de> | 2012-10-30 03:27:36 +0100 |
|---|---|---|
| committer | Riyad Preukschas <riyad@informatik.uni-bremen.de> | 2012-12-03 22:51:56 +0100 |
| commit | ae067ee322e6702fb5ef0fd4f0cc4d4d5106cbde (patch) | |
| tree | 28f76dc83a291a23488a6351bf2d2a555d884c68 /app/helpers | |
| parent | 6c6f415cae54be4dae4522e901ed55c9dae04a15 (diff) | |
| download | gitlab-ce-ae067ee322e6702fb5ef0fd4f0cc4d4d5106cbde.tar.gz | |
Fix vote counting
Diffstat (limited to 'app/helpers')
| -rw-r--r-- | app/helpers/notes_helper.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/app/helpers/notes_helper.rb b/app/helpers/notes_helper.rb index 11d3a2ecc6c..02dec2a043e 100644 --- a/app/helpers/notes_helper.rb +++ b/app/helpers/notes_helper.rb @@ -1,12 +1,4 @@ module NotesHelper - def loading_more_notes? - params[:loading_more].present? - end - - def loading_new_notes? - params[:loading_new].present? - end - # Helps to distinguish e.g. commit notes in mr notes list def note_for_main_target?(note) !@mixed_targets || (@target.class.name == note.noteable_type && !note.for_diff_line?) @@ -23,4 +15,12 @@ module NotesHelper link_to "#{note.diff_file_name}:L#{note.diff_new_line}", diffs_project_merge_request_path(note.project, note.noteable_id, anchor: note.line_code) end end + + def loading_more_notes? + params[:loading_more].present? + end + + def loading_new_notes? + params[:loading_new].present? + end end |
