diff options
author | Alejandro RodrÃguez <alejorro70@gmail.com> | 2016-06-06 12:01:50 -0400 |
---|---|---|
committer | Alejandro RodrÃguez <alejorro70@gmail.com> | 2016-06-06 12:01:50 -0400 |
commit | 535d11302e73fe88702f7c65effc3cd443bf56fc (patch) | |
tree | 1db737e7b6d5874fdb7ad3b2b4162013424d29cb /app/helpers | |
parent | 316630ad2c7f654024d7ea10cd5c2f978f37357e (diff) | |
download | gitlab-ce-535d11302e73fe88702f7c65effc3cd443bf56fc.tar.gz |
Remove prev/next buttons on issues and merge requests18026-consider-removing-issue-merge-request-previous-next-buttons
The buttons were rarely used and added at least 1 query each on every page load.
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/issuables_helper.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/app/helpers/issuables_helper.rb b/app/helpers/issuables_helper.rb index 37b93f63145..40d8ce8a1d3 100644 --- a/app/helpers/issuables_helper.rb +++ b/app/helpers/issuables_helper.rb @@ -8,14 +8,6 @@ module IssuablesHelper "right-sidebar-#{sidebar_gutter_collapsed? ? 'collapsed' : 'expanded'}" end - def issuables_count(issuable) - base_issuable_scope(issuable).maximum(:iid) - end - - def next_issuable_for(issuable) - base_issuable_scope(issuable).where('iid > ?', issuable.iid).last - end - def multi_label_name(current_labels, default_label) # current_labels may be a string from before if current_labels.is_a?(Array) @@ -45,10 +37,6 @@ module IssuablesHelper end end - def prev_issuable_for(issuable) - base_issuable_scope(issuable).where('iid < ?', issuable.iid).first - end - def user_dropdown_label(user_id, default_label) return default_label if user_id.nil? return "Unassigned" if user_id == "0" |