From 53121601f38155e926eed300160f79dd4bc0768b Mon Sep 17 00:00:00 2001
From: Lin Jen-Shin <godfat@godfat.org>
Date: Thu, 9 Jun 2016 17:07:09 +0800
Subject: [PATCH] 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
---
 app/views/projects/runners/_runner.html.haml | 2 ++
 1 file changed, 2 insertions(+)

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'} &#128274;
         %small
           = link_to edit_namespace_project_runner_path(@project.namespace, @project, runner) do
             %i.fa.fa-edit.btn
-- 
GitLab