Skip to content

Commit 8ae7744

Browse files
committed
Merge pull request #55 from cyberarm/master
A few Changes
2 parents ae6c4b2 + 1ae70b1 commit 8ae7744

6 files changed

Lines changed: 18 additions & 6 deletions

File tree

public/css/site.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,20 @@ hr {
4141
background-color:#000;
4242
}
4343
.vertical-center-text {
44-
padding-top:20px;
44+
/*padding-top:20px;*/
4545
padding-left:80px;
4646
}
4747

4848

4949
.preview {
5050
background-color: #fff;
5151
}
52+
53+
.gravatar {
54+
float: left;
55+
border-radius:4px;
56+
}
57+
58+
.hacker-gravatar {
59+
border-radius: 4px;
60+
}

views/content/show.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
.comment{:style => "clear:both;padding-bottom:1em"}
99
%div{:style => "float:left;padding-right:1em"}
1010
%a{:href => "/hackers/#{reply.author}"}
11-
%img{:src => gravatar_url_for(reply.author_email), :alt => "#{reply.author.downcase}_gravatar", :class => "comment_gravatar"}
11+
%img{:src => gravatar_url_for(reply.author_email), :alt => "#{reply.author.downcase}_gravatar", :class => "gravatar"}
1212
%div{:style => "width:500px"}
1313
%p
1414
<a href="/hackers/#{reply.author}">#{reply.author}</a> says:

views/hackers/show.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.span-18
22
%h1= @hacker.username + "'s page"
3-
%img{:src => @hacker.gravatar_url}
3+
%img{:src => @hacker.gravatar_url, :class => "hacker-gravatar"}
44
%h2 About #{@hacker.username}:
55
%p= @hacker.about
66
%hr

views/programs/show.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
.comment{:style => "clear:both;padding-bottom:1em"}
1313
%div{:style => "float:left;padding-right:1em"}
1414
%a{:href => "/hackers/#{reply.author}"}
15-
%img{:src => gravatar_url_for(reply.author_email), :alt => "#{reply.author.downcase}_gravatar", :class => "comment_gravatar"}
15+
%img{:src => gravatar_url_for(reply.author_email), :alt => "#{reply.author.downcase}_gravatar", :class => "hacker-gravatar"}
1616
%div{:style => "width:500px"}
1717
%p
1818
<a href="/hackers/#{reply.author}">#{reply.author}</a> says:

views/sessions/login.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
%td
88
%label{:for => "user_username"} Username
99
%td
10-
%input{:id => "user_username", :name => "username", :size => 30, :type => "text"}
10+
%input{:id => "user_username", :name => "username", :size => 30, :type => "text", :autofocus => "focus"}
1111
%tr
1212
%td
1313
%label{:for => "user_password"} Password

views/stream.haml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,15 @@
5353
%ul{:style => "list-style:none"}
5454
- @content_list.each do |content|
5555
%li{:style => "height:70px"}
56-
%img{:height => "64", :src => content.image, :style => "float:left"}/
56+
%img{:height => "64", :src => content.image, :class => "gravatar"}/
5757
%p{:class => "vertical-center-text"}
5858
%a{:href => "/hackers/#{content.author}"}= content.author
5959
shared a
6060
%a{:href => "/content/#{content.id}"}= content.type
6161
\: "#{content.body[0,50]}..." (#{content.comments.length} comments)
62+
%p{:class => "vertical-center-text"}
63+
Posted on #{content.created_at.strftime("%m/%d/%Y at %I:%M%p")}
64+
%br/
6265
- unless @prev_page.nil?
6366
%a.button{:href => @prev_page, :id => "prev_button"}
6467
&laquo; Previous

0 commit comments

Comments
 (0)