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 @@
-
- + <% end %> +
+ +
+ +
+ -
- -

<%= @game.title %>

+ +
+ + +
+

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 %> -
- <%= simple_form_for(@game) do |f| %> - <%= f.error_notification %> -
- <% if @game.may_approve? %> - <%= f.button :submit, Game::STATE_APPROVE %> - <% end %> - <% if @game.may_reject? %> - <%= f.button :submit, Game::STATE_REJECT %> - <% end %> -
- <% end %> -
- <% end %> - - <%# if (can? :manage, @game ) %> - <% 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 %> -

-
- -
- <%= button_to "Download Pdf", game_review_path(@game.id), class:"orange" %> - <%= button_to "Download Game", @game.attachment_url, class:"orange" %> - <%= button_to "Download Crash", href="#", class:"orange" %> -
- <% end %> - + <% if user_is_gamer? %>
- <%= button_to "Buy", @game.link, class:"orange" %> + <%= button_to "Buy", @game.link, class:"btn btn-default" %>
<% end %>
- +
+
diff --git a/app/views/users/_form.html.erb b/app/views/users/_form.html.erb index 95a80f4..a3a5376 100644 --- a/app/views/users/_form.html.erb +++ b/app/views/users/_form.html.erb @@ -26,3 +26,4 @@ <%= f.button :submit, value: "Signup", class: "btn btn-default register-button" %> <% end %> +Contact GitHub API Training Shop Blog About