-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
^X merge Merge branch 'followings-followers' ^X exit C C vd wq :qw :wq ^X .q c eiit exit y exit :wq :wq
- Loading branch information
Showing
9 changed files
with
168 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
|
||
<section class="user_info"> | ||
<h1> | ||
<%= gravatar_for @user %> | ||
<%= @user.name %> | ||
</h1> | ||
</section> | ||
<ul class="other-links"> | ||
<li> | ||
<%= link_to user_path(@user) do %> | ||
<span class="s-txt">ツイート</span> | ||
<span class="num"><%= @user.microposts.count %></span> | ||
<% end %> | ||
</li> | ||
<li> | ||
<%= link_to followings_user_path(@user) do %> | ||
<span class="s-txt">フォロー</span> | ||
<span class="num"><%= @user.following_users.count %></span> | ||
<% end %> | ||
</li> | ||
<li> | ||
<%= link_to followers_user_path(@user) do %> | ||
<span class="s-txt">フォロワー</span> | ||
<span class="num"><%= @user.follower_users.count %></span> | ||
<% end %> | ||
</li> | ||
</ul> | ||
<% if @user == current_user %> | ||
<div class="other-info"> | ||
<ul class="other-info-lists"> | ||
<% unless @user.birthday.blank? %> | ||
<li> | ||
<p class="info-ttl">誕生日</p> | ||
<p class="info-content"><%= @user.birthday.try(:strftime, "%Y年%m月%d日") %></p> | ||
</li> | ||
<% end %> | ||
<% unless @user.location.blank? %> | ||
<li> | ||
<p class="info-ttl">地域</p> | ||
<p class="info-content"><%= @user.location %></p> | ||
</li> | ||
<% end %> | ||
<% unless @user.homepage.blank? %> | ||
<li> | ||
<p class="info-ttl">ホームページ</p> | ||
<p class="info-content"><%= @user.homepage %></p> | ||
</li> | ||
<% end %> | ||
</ul> | ||
</div> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<div class="person-block col-md-4"> | ||
<%= link_to user_path(object), class: "person-link" do %> | ||
<div class="panel panel-default"> | ||
<div class="panel-body"> | ||
<p><%= gravatar_for object %></p> | ||
<p class="name"><%= object.name %></p> | ||
</div> | ||
</div><!--/panel--> | ||
<% end %> | ||
</div><!--/person-block--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<div class="row"> | ||
<aside class="col-md-4"> | ||
<%= render "layouts/aside" %> | ||
</aside> | ||
<div class="col-md-8"> | ||
<h2 class="text-left">フォロワ一覧</h2> | ||
<div class="wrp-block row"> | ||
<% @followings.each do |following| %> | ||
<%= render "followlists", object: following %> | ||
<% end %> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<div class="row"> | ||
<aside class="col-md-4"> | ||
<%= render "layouts/aside" %> | ||
</aside> | ||
<div class="col-md-8"> | ||
<h2 class="text-left">フォローしてる人一覧</h2> | ||
<div class="wrp-block row"> | ||
<% @followings.each do |following| %> | ||
<%= render "followlists", object: following %> | ||
<% end %> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters