diff --git a/app/views/games/show.html.erb b/app/views/games/show.html.erb index e525740..c08f624 100644 --- a/app/views/games/show.html.erb +++ b/app/views/games/show.html.erb @@ -1,4 +1,52 @@
<%= @game.description %>
+ + <% if (user_is_dev? && @game.user_id == current_user.id ) || + user_is_admin? %> +Type: + <% @game.taggings.map do |tagging| %> + <%= Tag.find(tagging.tag_id).name %> | + <% end %> +
++ <%= link_to "Download Game", @game.download_button, class: "btn btn-default" %> + <% if @game.may_approve? %> + <%= f.button :submit, Game::STATE_APPROVE, value: "Approve Game" %> + <% end %> + <% if @game.may_reject? %> + <%= f.button :submit, Game::STATE_REJECT, value: "Reject Game" %> + <% end %> +
+ <% end %> ++ <%= link_to "Download Pdf", game_review_path(@game.id), class:"btn btn-default" %> + <%= link_to "Download Game", @game.attachment_url, class:"btn btn-default" %> + <%= link_to "Download Crash", href="#", class:"btn btn-default" %> +
+Made by: <%= @game.user_company %>
Date: <%= @game.formatted_created_at %>
@@ -44,44 +92,7 @@Last in Arcade: <%= @game.last_in_arcade %>
Played: <%= @game.reviews_count %> times
Overall Rating: <%= @game.reviews_count %>
- - <%# if can?(:manage, @game) %> - <% if user_is_admin? || - ( user_is_dev? && @game.user_id == current_user.id) %> - <%= @game.download_button %> -Type: - <% @game.taggings.map do |tagging| %> - <%= Tag.find(tagging.tag_id).name %> | - <% end %> -
-Check out the map to see the location of arcades and the games that are available.