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.title %>

+

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

+
+ <%# if can?(:manage, @game) %> + <% if user_is_admin? || + ( user_is_dev? && @game.user_id == current_user.id) %> +
+ <%= simple_form_for(@game) do |f| %> + <%= f.error_notification %> +

+ <%= 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 %> +
+ <% end %> + + <%# if (can? :manage, @game ) %> + +
+

+ <%= 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" %> +

+
+ <% end %> +
+ +
+
+
<% end %> - <% end %> + <% end %>
<% end %>
-
- -

<%= @game.title %>

+ +
+

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 %> -
- <%= 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" %> @@ -91,7 +102,8 @@
- +
+
diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index 3d314f7..29eca96 100644 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -36,7 +36,7 @@
-

Find an arcade near you

+

Find an arcade near you

Check out the map to see the location of arcades and the games that are available.