diff --git a/app/views/games/show.html.erb b/app/views/games/show.html.erb index e525740..1684221 100644 --- a/app/views/games/show.html.erb +++ b/app/views/games/show.html.erb @@ -1,42 +1,86 @@
<%= @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 %> - -
+ <%= 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,54 +88,18 @@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 %> -
-