summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorAlejandro Rodríguez <alejorro70@gmail.com>2016-06-06 12:01:50 -0400
committerAlejandro Rodríguez <alejorro70@gmail.com>2016-06-06 12:01:50 -0400
commit535d11302e73fe88702f7c65effc3cd443bf56fc (patch)
tree1db737e7b6d5874fdb7ad3b2b4162013424d29cb /app/helpers
parent316630ad2c7f654024d7ea10cd5c2f978f37357e (diff)
downloadgitlab-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.rb12
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"