Skip to content

Show the dominant language of a tip4commit repo #107

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions app/assets/stylesheets/projects.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@
.commit-sha {
font-family: monospace;
}

.repo i {
color: #fff
}
7 changes: 6 additions & 1 deletion app/views/projects/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 6 additions & 1 deletion app/views/projects/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down