/
show.html.slim
54 lines (50 loc) · 1.84 KB
/
show.html.slim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
- title "#{@user}'s blog"
- window_title 'Flow'
= render partial: 'posts/dynamic', locals: { posts: @posts }
div class="row"
div class="left-column"
- if user_signed_in?
= render 'shared/profile'
= render 'shared/follow'
- else
section class="profile"
header
div class="profile-avatar"
= avatar_image @user, 160
h1 class="profile-title"
= @user.username
div class="clear"
nav class="profile-stats"
ul
li
span class="profile-stats-stat" Posts
span class="profile-stats-value" = @user.posts.not_private.count
li
span class="profile-stats-stat" Followers
span class="profile-stats-value" = @user.followers.count
li
span class="profile-stats-stat" Likes
span class="profile-stats-value" = @user.rating
section class="about"
header
h1 class="about-title" Gistflow
p class="about-description" Social network for developers
div class="about-join"
= link_to 'Sign up', auth_path, class: 'button button-primary'
div class="about-ears"
div class="about-ears-mirror"
= render 'shared/footer'
div class="right-column"
section class="posts"
header
h1 class="posts-title" Blog
- @posts.each do |post|
= post_article post, class: 'post-preview' do
header
h1 class="post-title" = link_to post.title, post
= render partial: 'posts/author', locals: { user: post.user }
div class="post-content post-content-preview markdown"
== Markdown.markdown post.preview, flavored: true
div class="clear"
= render partial: 'posts/links', locals: { post: post }
div class="clear"