FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Show the dominant language of a tip4commit repo by joshumax · Pull Request #107 · tip4commit/tip4commit · GitHub

Repository navigation

Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .haml  (2) .scss  (1) All 2 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
4 changes: 4 additions & 0 deletions app/assets/stylesheets/projects.css.scss
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Back | FazBrowse Home | New Git URL