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:
authorYorick Peterse <yorickpeterse@gmail.com>2015-11-09 14:36:01 +0300
committerYorick Peterse <yorickpeterse@gmail.com>2015-11-09 16:29:10 +0300
commit7b5fd8742e6112491f61f27dcca2d8e441cc33a1 (patch)
tree7213089c2ab7b9cb76600a30615c06d066f9d137 /app/views/sherlock
parentcdaa97443e89a08d857a244e6e8ab0235db9746d (diff)
Track the amount of times views are rendered
Diffstat (limited to 'app/views/sherlock')
-rw-r--r--app/views/sherlock/transactions/_file_samples.html.haml2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/sherlock/transactions/_file_samples.html.haml b/app/views/sherlock/transactions/_file_samples.html.haml
index 0afdbc8dffa..4349c9b7ace 100644
--- a/app/views/sherlock/transactions/_file_samples.html.haml
+++ b/app/views/sherlock/transactions/_file_samples.html.haml
@@ -7,6 +7,7 @@
%thead
%tr
%th= t('sherlock.time_inclusive')
+ %th= t('sherlock.count')
%th= t('sherlock.path')
%th
%tbody
@@ -15,6 +16,7 @@
%td
= sample.duration.round(2)
= t('sherlock.milliseconds')
+ %td= @transaction.view_counts.fetch(sample.file, 1)
%td= sample.relative_path
%td
= link_to(t('sherlock.view'),