summaryrefslogtreecommitdiff
path: root/app/views/projects/triggers/_trigger.html.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-09-29 10:37:31 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-09-29 10:37:31 +0200
commit2a0d4e7200d3e985552d887b9c9e14db073c70ab (patch)
treef02c53ad90cff5e731d527399942544e8b8a84f3 /app/views/projects/triggers/_trigger.html.haml
parente1b7fcedfb24353c857a160cd0c981f02fb2542a (diff)
downloadgitlab-ce-2a0d4e7200d3e985552d887b9c9e14db073c70ab.tar.gz
Move CI triggers page to project settings areamove-triggers-page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/projects/triggers/_trigger.html.haml')
-rw-r--r--app/views/projects/triggers/_trigger.html.haml14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/views/projects/triggers/_trigger.html.haml b/app/views/projects/triggers/_trigger.html.haml
new file mode 100644
index 00000000000..48b3b5c9920
--- /dev/null
+++ b/app/views/projects/triggers/_trigger.html.haml
@@ -0,0 +1,14 @@
+%tr
+ %td
+ .clearfix
+ %span.monospace= trigger.token
+
+ %td
+ - if trigger.last_trigger_request
+ #{time_ago_in_words(trigger.last_trigger_request.created_at)} ago
+ - else
+ Never
+
+ %td
+ .pull-right
+ = link_to 'Revoke', namespace_project_trigger_path(@project.namespace, @project, trigger), data: { confirm: 'Are you sure?'}, method: :delete, class: "btn btn-danger btn-sm btn-grouped"