Skip to content

Commit

Permalink
add links back to stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
patwalls committed Dec 25, 2018
1 parent 30b12f7 commit ea45117
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
12 changes: 12 additions & 0 deletions app/assets/stylesheets/posts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,23 @@
border-radius: 50%;
}

.index-bio__right {
.name {
font-size: 24px;

a {
color: black;
}
}

}

.index-bio__left {
display: flex;
flex-direction: column;
align-items: center;
margin-right: 20px;
width: 100px;

img {
margin-bottom: 10px;
Expand Down
12 changes: 7 additions & 5 deletions app/views/i/posts/_bio.html.haml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
.index-bio
.index-bio__left
- if user.avatar.present?
= image_tag(user.avatar.url)
- else
= image_tag(Avatar.new(user.email).get&.gsub(/\/s\d+/, '/s128'))
= link_to "/#{user.username}" do
- if user.avatar.present?
= image_tag(user.avatar.url)
- else
= image_tag(Avatar.new(user.email).get&.gsub(/\/s\d+/, '/s128'))
- if user.instagram.present?
= link_to "https://instagram.com/#{user.instagram}" do
= fa_icon "instagram"
= link_to "https://twitter.com/#{user.twitter}" do
= fa_icon "twitter"
.index-bio__right
%h4= user.name
.name
= link_to user.name, "/#{current_user.username}"
.bio= user.bio
- if editable?(user)
.edit= link_to("edit bio", profile_path)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ea45117

Please sign in to comment.