Open
Conversation
Owner
Author
|
ready |
cf397f6 to
95186c6
Compare
Owner
Author
|
ready |
b644a40 to
e3e2eb1
Compare
hungnh103
reviewed
Jul 21, 2017
app/views/comments/_comment.html.erb
Outdated
| @@ -0,0 +1,30 @@ | |||
| <% user = comment.user %> | |||
| <li> | |||
| <%= link_to gravatar_for(user, size: 30), user %> | |||
app/views/comments/_comment.html.erb
Outdated
| @@ -0,0 +1,30 @@ | |||
| <% user = comment.user %> | |||
Collaborator
There was a problem hiding this comment.
em xử lý lấy user của comment trong controller nhé
Owner
Author
There was a problem hiding this comment.
do tách pull nên controller bị chuyển sang pull khác ạ, em sẽ sửa lại sau
app/views/comments/_comment.html.erb
Outdated
| <li> | ||
| <%= link_to gravatar_for(user, size: 30), user %> | ||
| <%= user.name %> : <%= comment.content %> | ||
|
|
app/views/comments/_comment.html.erb
Outdated
|
|
||
|
|
||
| <span class="timestamp"> | ||
| <label class="reply">reply</label> |
app/views/comments/_comment.html.erb
Outdated
| </ul> | ||
|
|
||
| <%= form_for(Comment.new, html: {class: "newcomment2rd"}) do |f| %> | ||
|
|
app/views/users/show.html.erb
Outdated
| </section> | ||
| </aside> | ||
| <div class="col-md-8"> | ||
| <%= render 'follow_form' if user_signed_in? %> |
app/views/users/show_follow.html.erb
Outdated
| @@ -0,0 +1,30 @@ | |||
| <% provide(:title, @title) %> | |||
app/views/users/show_follow.html.erb
Outdated
| <%= gravatar_for @user %> | ||
| <h1><%= @user.name %></h1> | ||
| <span><%= link_to "view my profile", @user %></span> | ||
| <span><b>posts:</b> <%= @user.posts.count %></span> |
Collaborator
There was a problem hiding this comment.
- I18n
- em dùng css để định kiểu chữ in đậm nhé, ko dùng thẻ
<b> @user.posts.size
app/views/users/show_follow.html.erb
Outdated
| <span><b>posts:</b> <%= @user.posts.count %></span> | ||
| </section> | ||
| <section class="stats"> | ||
| <%= render 'shared/stats' %> |
app/views/users/show_follow.html.erb
Outdated
| <% if @users.any? %> | ||
| <div class="user_avatars"> | ||
| <% @users.each do |user| %> | ||
| <%= link_to gravatar_for(user, size: 30), user %> |
7a0bfff to
e6175a4
Compare
Owner
Author
|
ready |
app/views/comments/_comment.html.erb
Outdated
Collaborator
There was a problem hiding this comment.
indent from line 19-24
app/views/shared/_user_info.html.erb
Outdated
Collaborator
|
commented |
Owner
Author
|
ready |
|
|
||
| def show | ||
| @posts = @user.posts.order_by_desc.page(params[:page]).per Settings.controller.pre_page | ||
| @unfollow = current_user.active_relationships.find_by(followed_id: @user.id) |
| @@ -0,0 +1,2 @@ | |||
| $("#follow_form").html("<%= escape_javascript(render('users/follow')) %>"); | |||
| $("#followers").html('<%= @user.followers.count %>'); | |||
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.