diff options
author | Robert Speicher <robert@gitlab.com> | 2015-08-21 17:09:10 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2015-08-21 17:09:10 +0000 |
commit | 3f0679ab5ae7a4bd825a937d9601767bb6d681d2 (patch) | |
tree | e5b420e50b31f104c993be7f78168658123e548c /app/views/triggers/_trigger.html.haml | |
parent | ab3ecb348e65a9579a8f5ffbdd70fd55c59b9f17 (diff) | |
parent | e905cbda6e1577d4a9c11da899d11aeb2e637035 (diff) | |
download | gitlab-ci-3f0679ab5ae7a4bd825a937d9601767bb6d681d2.tar.gz |
Merge branch 'build-triggers' into 'master'
Implement build trigger API
This commit implements Build Triggers.
There are changes to API request:
- Due to security advised method to pass trigger token is to use form data
- Advised method to pass variables is to use form data
TODO:
- [x] Implement API
- [x] Implement UI
- [x] Dimitriy and Valery review
- [x] Write specs
- [x] Write documentation
- [x] Job documentation review
See merge request !229
Diffstat (limited to 'app/views/triggers/_trigger.html.haml')
-rw-r--r-- | app/views/triggers/_trigger.html.haml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app/views/triggers/_trigger.html.haml b/app/views/triggers/_trigger.html.haml new file mode 100644 index 0000000..72f7a17 --- /dev/null +++ b/app/views/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', project_trigger_path(@project, trigger), data: { confirm: 'Are you sure?'}, method: :delete, class: "btn btn-danger btn-sm btn-grouped" |