Created
December 12, 2012 19:42
-
-
Save jlstr/4270899 to your computer and use it in GitHub Desktop.
wannahelp index
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
<div class="row-fluid"> | |
<div class="span3 box-holder"> | |
<div id="center-text"> | |
<div id="filters"> | |
<%= search_form_for @search, url: user_wannahelp_index_path(current_user), | |
html: { method: :get } do |f| %> | |
<h4>Filters:</h4> | |
<%= f.label :language_eq, "Language:" %> | |
<%= f.select :language_eq, options_for_select(get_filter(@languages), current_value(:language_eq)), {}, | |
{class: "input-medium"} %> | |
<%= f.label :user_location_matches, "Location:" %> | |
<%= f.text_field :user_location_matches, class: "input-medium" %> | |
<%= f.label :tags, "Tagged with:" %> | |
<ul class="repo-tags"> | |
</ul> | |
<%= f.submit "Search", class: "btn btn-primary" %> | |
<%= link_to "Clear", user_wannahelp_index_path(current_user), class: "btn" %> | |
<% end %> | |
</div> | |
</div> | |
</div> | |
<div class="span9"> | |
<h3>Projects needing help:</h3> | |
<div class="span9 border-left"> | |
<div id="repo-list"> | |
<ul class="ul-clean user-repos"> | |
<% @repos.each do |repo| %> | |
<li> | |
<%= image_tag "repo-icon.png", :size => "25x25" %> | |
<%= link_to repo.name, "#{repo.github_url}" %> | |
- Author: <%= link_to "#{repo.user.github_id}", | |
"https://github.com/#{repo.user.github_id}" %> | |
<br/> | |
<% if repo.is_being_helped_by?(current_user) %> | |
<%= link_to "Stop Helping", "#", class: "btn btn-danger wanna-help-btn", | |
:"data-id" => repo[:id] %> | |
<% else %> | |
<%= link_to "I Wanna Help!", "#", class: "btn btn-success wanna-help-btn", | |
:"data-id" => repo[:id] %> | |
<% end %> | |
<small><%= repo.description %></small> | |
<div class="user-description"> | |
<%= markdown repo.user_description %> | |
</div> | |
</li> | |
<% end %> | |
</ul> | |
</div> | |
</div> | |
</div> | |
<div class="row-fluid"></div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment