diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-06-09 12:07:09 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-06-09 12:07:09 +0300 |
commit | 53121601f38155e926eed300160f79dd4bc0768b (patch) | |
tree | 76adf7f54b015e03c0936e4c7413d6356b272924 /app/views/projects/runners/_runner.html.haml | |
parent | d936c32ed97894a333f27cdc9b9c8c9c4f64697d (diff) |
Add a small locked icon if it's locked:
This is probably not the way we add icons, but well. Not sure if this
should be put next to the status icon or edit icon, my first thought
was put this next to status, but it looks a bit better next to edit
button. Please tweak this accordingly. I don't have strong opinion
regarding views.
Feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4093#note_12345567
Diffstat (limited to 'app/views/projects/runners/_runner.html.haml')
-rw-r--r-- | app/views/projects/runners/_runner.html.haml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/projects/runners/_runner.html.haml b/app/views/projects/runners/_runner.html.haml index 96e2aac451f..08389528dc9 100644 --- a/app/views/projects/runners/_runner.html.haml +++ b/app/views/projects/runners/_runner.html.haml @@ -4,6 +4,8 @@ %span.monospace - if @runners.include?(runner) = link_to runner.short_sha, runner_path(runner) + - if runner.locked? + %small{title: 'Exclusive to this project'} 🔒 %small = link_to edit_namespace_project_runner_path(@project.namespace, @project, runner) do %i.fa.fa-edit.btn |