diff --git a/app/views/asciicasts/_actions.html.erb b/app/views/asciicasts/_actions.html.erb new file mode 100644 index 0000000..5d20a6d --- /dev/null +++ b/app/views/asciicasts/_actions.html.erb @@ -0,0 +1,12 @@ +<% if @asciicast.user == current_user %> + +<% end %> diff --git a/app/views/asciicasts/_author.html.erb b/app/views/asciicasts/_author.html.erb index 889e942..e7f3340 100644 --- a/app/views/asciicasts/_author.html.erb +++ b/app/views/asciicasts/_author.html.erb @@ -1,9 +1,11 @@ -<%= @asciicast.user.avatar_profile_link %> +
+ <%= @asciicast.user.avatar_profile_link %> -

- <%= @asciicast.author_profile_link %> -

+

+ <%= @asciicast.author_profile_link %> +

-<% if @asciicast.user.asciicasts_count -%> -

<%= @asciicast.user.asciicasts_count %> asciicasts

-<% end -%> + <% if @asciicast.user.asciicasts_count -%> +

<%= @asciicast.user.asciicasts_count %> asciicasts

+ <% end -%> +
diff --git a/app/views/asciicasts/_info.html.erb b/app/views/asciicasts/_info.html.erb new file mode 100644 index 0000000..fe115fa --- /dev/null +++ b/app/views/asciicasts/_info.html.erb @@ -0,0 +1,19 @@ +

Info

+ + diff --git a/app/views/asciicasts/_share.html.erb b/app/views/asciicasts/_share.html.erb new file mode 100644 index 0000000..1b24740 --- /dev/null +++ b/app/views/asciicasts/_share.html.erb @@ -0,0 +1,7 @@ +

Share

+ + diff --git a/app/views/asciicasts/show.html.erb b/app/views/asciicasts/show.html.erb index 712a7f6..9ef45bb 100644 --- a/app/views/asciicasts/show.html.erb +++ b/app/views/asciicasts/show.html.erb @@ -18,50 +18,10 @@
-
- <%= render :partial => 'author' %> -
- - <% if @asciicast.user == current_user %> - - <% end %> - -

Info

- - - - <%#

Share

%> - - <%# %> + <%= render :partial => 'author' %> + <%= render :partial => 'actions' %> + <%= render :partial => 'info' %> + <%# <%= render :partial => 'share' %1> %>