Skip to content

Commit 84c9d2e

Browse files
committed
Merge remote-tracking branch 'ricardo/master'
2 parents 0095c5a + b158fe7 commit 84c9d2e

File tree

4 files changed

+32
-16
lines changed

4 files changed

+32
-16
lines changed

public/stylesheets/style.less

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ body {
4747
margin: 8px 0;
4848
display: inline-block;
4949
vertical-align: bottom;
50+
width: 75%;
5051
}
5152

5253
#content .changes {
@@ -63,9 +64,12 @@ body {
6364
}
6465

6566
#content .action {
67+
float: right;
68+
margin-top: 8px;
69+
}
70+
#content .share {
6671
text-align: right;
6772
}
68-
6973
#content h3 {
7074
}
7175

@@ -1248,3 +1252,7 @@ textarea.editor {
12481252
width: 200px;
12491253
height: 200px;
12501254
}
1255+
1256+
.jiathis_style_24x24 {
1257+
display: inline-block;
1258+
}

views/topic/index.html

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,15 @@
5252

5353
<%= topic.title %>
5454
</span>
55-
55+
<div class="action">
56+
<% if (typeof(current_user) !== 'undefined') { %>
57+
<% if (!topic.in_collection) { %>
58+
<span class='span-common span-success' id='collect_btn' action='collect'>加入收藏</span>
59+
<% } else { %>
60+
<span class='span-common' id='collect_btn' action='de_collect'>取消收藏</span>
61+
<% } %>
62+
<% } %>
63+
</div>
5664
<div class="changes">
5765
<span>
5866
发布于 <%= topic.friendly_create_at %>
@@ -120,18 +128,18 @@
120128
<div class='topic_content'>
121129
<%- markdown(topic.linkedContent) %>
122130
</div>
123-
124-
<div class="action">
125-
<span class='span-success' id='share_weibo_btn'
126-
onclick="((function(s,d,e,r,l,p,t,z,c){var f='http://v.t.sina.com.cn/share/share.php?appkey=<%= config.weibo_key %>',u=z||d.location,p=['&url=',e(u),'&title=',e(t||d.title),'&source=',e(r),'&sourceUrl=',e(l),'&content=',c||'gb2312','&pic=',e(p||'')].join('');function a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=440,height=430,left=',(s.width-440)/2,',top=',(s.height-430)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else a();})(screen,document,encodeURIComponent,'','','','@<%= config.weibo_id %> 分享来自<%= config.name %>的话题:<%= topic.title %>','',''));"
127-
>分享到微博</span>
128-
<% if (typeof(current_user) !== 'undefined') { %>
129-
<% if (!topic.in_collection) { %>
130-
<span class='span-common span-success' id='collect_btn' action='collect'>加入收藏</span>
131-
<% } else { %>
132-
<span class='span-common span-success' id='collect_btn' action='de_collect'>取消收藏</span>
133-
<% } %>
134-
<% } %>
131+
<div class="share">
132+
<!-- JiaThis Button BEGIN -->
133+
<div class="jiathis_style_24x24">
134+
<a class="jiathis_button_qzone"></a>
135+
<a class="jiathis_button_tsina"></a>
136+
<a class="jiathis_button_tqq"></a>
137+
<a class="jiathis_button_weixin"></a>
138+
<a class="jiathis_button_renren"></a>
139+
<a class="jiathis_counter_style"></a>
140+
</div>
141+
<script type="text/javascript" src="http://v3.jiathis.com/code/jia.js" charset="utf-8"></script>
142+
<!-- JiaThis Button END -->
135143
</div>
136144
</div>
137145
</div>

views/user/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<%}%>
2626
<% if (user.url) { %>
2727
<li>
28-
<i class="fa fa-lg fa-fw fa-paper-plane"></i>
28+
<i class="fa fa-lg fa-fw fa-home"></i>
2929
<a class='dark' href="<%= user.url %>" target='_blank'><%= user.url %></a>
3030
</li>
3131
<% } %>

views/user/user.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<% if (user.url) { %>
2020
<span>
2121
<a href="<%= user.url %>" target='_blank'>
22-
<i class="fa fa-paper-plane" title='个人网站'></i>
22+
<i class="fa fa-home" title='个人网站'></i>
2323
</a>
2424
</span>
2525
<% } %>

0 commit comments

Comments
 (0)