Skip to content

Commit

Permalink
adds icons for several tags, displays on event listings
Browse files Browse the repository at this point in the history
  • Loading branch information
supremebeing7 committed Nov 20, 2014
1 parent 432a9d2 commit 0152aef
Show file tree
Hide file tree
Showing 16 changed files with 8 additions and 0 deletions.
Binary file added app/assets/images/tag_icons/angular.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/tag_icons/beer.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/tag_icons/bitcoin.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/tag_icons/free.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/tag_icons/golang.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/tag_icons/html.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/tag_icons/javascript.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/tag_icons/linux.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/tag_icons/php.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/tag_icons/pizza.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/tag_icons/python.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/tag_icons/rails.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/tag_icons/ruby.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/tag_icons/sass.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/tag_icons/swift.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions app/views/events/_list_item.html.erb
Expand Up @@ -3,6 +3,7 @@ new_day ||= nil
opts ||= {}
opts[:dates] = opts.has_key?(:dates) ? opts[:dates] : true
show_year ||= false
tag_icons = %w(free pizza beer ruby rails javascript python swift linux angular golang html sass bitcoin php) # Add to this as new icon image files are added
%>
<div class='vevent h-event'>
<% date_class = (opts[:dates]==false || !new_day) ? ' hidden' : '' -%>
Expand All @@ -15,6 +16,13 @@ show_year ||= false
</div>
<div class='list_content'>
<a class='summary p-name u-url' href='<%= url_for event_url(event) %>'><%= event.title %></a>
<div>
<% tag_icons.each do |tag_icon_name| %>
<% if event.tag_list.include? tag_icon_name %>
<img src="/assets/tag_icons/<%= tag_icon_name %>.png" />
<% end %>
<% end %>
</div>
<div>
<%= normalize_time(event, :context => event.start_time.to_date) -%>
<% if event.venue && !event.venue.title.blank? %>
Expand Down

0 comments on commit 0152aef

Please sign in to comment.