Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #330 from igas/erb-to-slim
Change erb to slim
- Loading branch information
Showing
10 changed files
with
65 additions
and
75 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
- lang_index = 0 | ||
.row-fluid | ||
ul.nav.nav-tabs.nav-stacked.span4#repo-tabs data-tabs="tabs" | ||
- repos.group_by(&:language).each do |lang, repos| | ||
- unless lang == nil | ||
li = link_to lang, "##{lang.parameterize}#{lang.hash}", data: { toggle: "tab" } | ||
.tab-content.span8 | ||
- repos.group_by(&:language).each do |lang, repos| | ||
- unless lang == nil | ||
div class="tab-pane#{" active" if lang_index == 0}" id="#{lang.parameterize}#{lang.hash}" | ||
ul.unstyled.repos-list = render repos | ||
- lang_index = lang_index + 1 | ||
|
||
= link_to "Submit a Repo", new_repo_path, class: 'btn btn-success' | ||
|
||
javascript: | ||
$(document).ready(function(){ | ||
var hash = document.location.hash; | ||
if (hash) { | ||
$('.nav-tabs a[href='+hash+']').tab('show'); | ||
} | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
- unless user_signed_in? | ||
.jumbotron | ||
h1 Help your favorite open source projects | ||
p.lead Sign up to receive a different open issue in your inbox every day from your favorite GitHub repos | ||
= link_to'Sign up today', new_user_registration_path, class: 'btn btn-large btn-success' | ||
|
||
.jumbotron | ||
p.lead #{number_with_delimiter(User.count, delimiter: ',')} developers are working on #{Repo.count} open source repos | ||
hr | ||
- if @repos_subs.present? | ||
h2 Repos you are currently helping | ||
p | ||
= render 'repo_subscriptions/list', repos_subs: @repos_subs | ||
= link_to 'Find additional repos', repos_path, class: 'btn btn-success' | ||
= link_to "Submit a Repo", new_repo_path, class: 'btn btn-success' | ||
hr | ||
h2 Repos needing the most help | ||
= render 'repos', repos: @repos |
This file was deleted.
Oops, something went wrong.
This file contains 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
li | ||
span.label.label-info data-toggle="tooltip" title=pluralize(repo.issues_count, 'Issue') = repo.issues_count | ||
h4 | ||
= link_to repo.name, repo | ||
- if repo.full_name.present? | ||
small< | ||
| (#{repo.full_name}) | ||
p = raw repo.description |
This file was deleted.
Oops, something went wrong.
This file contains 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
h2 Subscribe To a Repo on GitHub | ||
= render 'repos', repos: @repos | ||
= will_paginate @repos |
This file was deleted.
Oops, something went wrong.