diff options
Diffstat (limited to 'app/views/users/show.html.erb')
-rw-r--r-- | app/views/users/show.html.erb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb new file mode 100644 index 0000000..ad6675a --- /dev/null +++ b/app/views/users/show.html.erb @@ -0,0 +1,19 @@ +<div class="space-y-4"> + <h1 class="text-2xl"> + <span class="px-4 py-2 text-lg text-slate-900 bg-orange-600 rounded">TRAINER CARD</span> + <%= @user.name || "Unknown" %> + </h1> + <p class="subtitle">ID No. <%= @user.id %></p> + + <ul> + <li>Pokédex 0</li> + </ul> + + <h2><%= pluralize(@user.runs.count, "run") %></h2> + + <ul class="list-disc"> + <% @user.runs.each do |run| %> + <li><%= run.game.title %> - <%= link_to run.title, run_path(run) %></li> + <% end %> + </ul> +</div> |