Skip to content

Commit

Permalink
Cleaned up the appearance of the gravatars on the profile and top use…
Browse files Browse the repository at this point in the history
…rs pages
  • Loading branch information
darrenaustin committed Oct 2, 2011
1 parent 258535b commit b390349
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
14 changes: 11 additions & 3 deletions resources/public/css/style.css
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -134,12 +134,20 @@ a.novisited {color: #00e;}
color: black; color: black;
} }


td a.user-profile-link {
display: block;
margin-top: 5px;
}

.user-profile-img{ .user-profile-img{
float:left; float: left;
padding-right: 10px;
} }


img.gravatar{ img.gravatar{
float:right; float: left;
display: inline;
margin-right: 5px;
} }


#user-info{ #user-info{
Expand Down Expand Up @@ -225,7 +233,6 @@ img.gravatar{
padding: 15px; padding: 15px;
} }



/* /*
* By default only show the text label for the "Following" column on * By default only show the text label for the "Following" column on
* the users page. If they have javascript turned on (detected * the users page. If they have javascript turned on (detected
Expand Down Expand Up @@ -399,6 +406,7 @@ table.my-table {
table.my-table td { table.my-table td {
text-align: left; text-align: left;
font-size: 12px; font-size: 12px;
vertical-align: middle;
} }


tr.evenrow { tr.evenrow {
Expand Down
10 changes: 4 additions & 6 deletions src/foreclojure/users.clj
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -121,9 +121,8 @@
[:tr (row-class rownum) [:tr (row-class rownum)
[:td (rank-class position) rank] [:td (rank-class position) rank]
[:td [:td
(when contributor [:span.contributor "* "]) (gravatar-img {:email email :class "gravatar"})
[:a.user-profile-link {:href (str "/user/" user)} user] [:a.user-profile-link {:href (str "/user/" user)} user (when contributor [:span.contributor " *"])]]
(gravatar-img {:email email :class "gravatar"})]
[:td.centered (count solved)] [:td.centered (count solved)]
[:td (following-checkbox user-id following _id user)]]) [:td (following-checkbox user-id following _id user)]])
user-set)]))) user-set)])))
Expand Down Expand Up @@ -178,9 +177,8 @@
{:title page-title {:title page-title
:content :content
(list (list
[:div.user-profile-name (gravatar-img {:email email, :size 80 (gravatar-img {:email email, :size 80 :class "user-profile-img"})
:class "user-profile-img"}) [:div.user-profile-name page-title]
page-title]
(if (session/session-get :user) (if (session/session-get :user)
(with-user [{:keys [_id following]}] (with-user [{:keys [_id following]}]
(if (not= _id user-id) (if (not= _id user-id)
Expand Down

0 comments on commit b390349

Please sign in to comment.