From 09572e40bc233792a9c8c528b373ba6dc4493791 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Tue, 11 Jun 2013 10:02:17 +0300 Subject: [PATCH] use public_icon/private_icon helper --- app/views/shared/_clone_panel.html.haml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/views/shared/_clone_panel.html.haml b/app/views/shared/_clone_panel.html.haml index 62e0fa2..5120902 100644 --- a/app/views/shared/_clone_panel.html.haml +++ b/app/views/shared/_clone_panel.html.haml @@ -4,10 +4,8 @@ = text_field_tag :project_clone, @project.url_to_repo, class: "one_click_select span7", readonly: true %span.add-on - if @project.public - .cblue - %i.icon-share - public + = public_icon + %span.cblue public - else - .cgreen - %i.icon-lock - private + = private_icon + %span.cgreen private -- libgit2 0.21.2