diff --git a/app/assets/stylesheets/projects.css.scss b/app/assets/stylesheets/projects.css.scss index 6d95023e..70522c19 100644 --- a/app/assets/stylesheets/projects.css.scss +++ b/app/assets/stylesheets/projects.css.scss @@ -5,3 +5,7 @@ .commit-sha { font-family: monospace; } + +.repo i { + color: #fff +} diff --git a/app/views/projects/index.html.haml b/app/views/projects/index.html.haml index 95c1a613..f29c2e65 100644 --- a/app/views/projects/index.html.haml +++ b/app/views/projects/index.html.haml @@ -22,7 +22,12 @@ - @projects.each do |project| %tr %td - %strong= link_to project.full_name, pretty_project_path(project) + %strong + - if project.source_full_name.blank? + %span{:class => 'label label-default'}= project.language + - else + %span{:class => 'label label-default'}= glyph(:'code-fork') + ' Forked' + = link_to project.full_name, pretty_project_path(project) - if !project.source_full_name.blank? %br %nobr diff --git a/app/views/projects/show.html.haml b/app/views/projects/show.html.haml index adf91c39..ea1ab645 100644 --- a/app/views/projects/show.html.haml +++ b/app/views/projects/show.html.haml @@ -3,9 +3,14 @@ - content_for :description do = @project.description +- if @project.source_full_name.blank? + %small{:class => 'label label-default'}= @project.language +- else + %small{:class => 'label label-default'}= glyph(:'code-fork') + ' Forked' +%small{:class => 'repo label label-default'}= link_to glyph(:github), @project.github_url, target: '_blank' + %h1 = @project.full_name - %small= link_to glyph(:github), @project.github_url, target: '_blank' .pull-right - if can? :update, @project = link_to t('.edit_project'), edit_project_path(@project), class: "btn btn-primary"