Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Koval <al3xander.koval@gmail.com>2019-02-26 20:13:45 +0300
committerKamil TrzciƄski <ayufan@ayufan.eu>2019-02-26 20:13:45 +0300
commit35c10922820e3e07a5c571e3ad81e90045b2da2b (patch)
tree45351a6a7960a0c8d156d51a7af46d29840ab5d1 /app/views/shared
parent3a29b6af828da63ff7142183135d5ddbbd90d940 (diff)
Reduce code duplication
Move logic of obtaining Issuable data to separate method
Diffstat (limited to 'app/views/shared')
-rw-r--r--app/views/shared/_issuable_meta_data.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/shared/_issuable_meta_data.html.haml b/app/views/shared/_issuable_meta_data.html.haml
index 6cc8c485666..31a5370a5f8 100644
--- a/app/views/shared/_issuable_meta_data.html.haml
+++ b/app/views/shared/_issuable_meta_data.html.haml
@@ -1,4 +1,4 @@
-- note_count = @issuable_meta_data[issuable.id].notes_count
+- note_count = @issuable_meta_data[issuable.id].user_notes_count
- issue_votes = @issuable_meta_data[issuable.id]
- upvotes, downvotes = issue_votes.upvotes, issue_votes.downvotes
- issuable_url = @collection_type == "Issue" ? issue_path(issuable, anchor: 'notes') : merge_request_path(issuable, anchor: 'notes')