This repository was archived by the owner on Apr 3, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +15
-5
lines changed Expand file tree Collapse file tree 4 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ Discourse.PosterExpansionController = Discourse.ObjectController.extend({
11
11
visible : false ,
12
12
user : null ,
13
13
14
+ showFilter : Em . computed . alias ( 'controllers.topic.postStream.hasNoFilters' ) ,
15
+
14
16
show : function ( post ) {
15
17
16
18
var currentUsername = this . get ( 'username' ) ;
Original file line number Diff line number Diff line change 1
1
{{ #if model }}
2
2
{{ boundAvatar model imageSize =" huge" }}
3
3
4
- <h1 >{{ username }} </h1 >
4
+ <h1 >< a {{ bindAttr href = " usernameUrl " }} > {{ username }} </ a > </h1 >
5
5
<h2 >{{ name }} </h2 >
6
6
7
7
{{ #if user }}
8
- <h3 >{{ i18n last_post }} : {{ date path =" user.last_posted_at" leaveAgo =" true" }} </h3 >
8
+ <h3 >{{ i18n last_post }} {{ date path =" user.last_posted_at" leaveAgo =" true" }} </h3 >
9
9
10
10
<div class =' bottom' >
11
11
{{ #if user.bio_cooked }} <div class =' bio' >{{{ user.bio_cooked }}} </div >{{ /if }}
14
14
<button class =' btn' {{ action composePrivateMessage user }} ><i class =' icon icon-envelope' ></i >{{ i18n user.private_message }} </button >
15
15
{{ /if }}
16
16
17
- {{ #link-to ' user' user class =" btn" }} <i class =' icon icon-user' ></i >{{ i18n user.profile }} {{ /link-to }}
17
+ {{ #link-to ' user' user class =" btn" }} <i class =' icon icon-user' ></i >{{ i18n user.show_profile }} {{ /link-to }}
18
+
19
+ {{ #if showFilter }}
20
+ <button class =' btn' {{ action togglePosts user }} ><i class =' icon icon-filter' ></i >{{ i18n topic.filter_to username =" username" }} </button >
21
+ {{ /if }}
18
22
19
- <button class =' btn' {{ action togglePosts user }} ><i class =' icon icon-filter' ></i >{{ i18n topic.filter_to username =" username" }} </button >
20
23
</div >
21
24
{{ else }}
22
25
<p class =' loading' >{{ i18n loading }} </p >
Original file line number Diff line number Diff line change 17
17
font-size : 30px ;
18
18
line-height : 33px ;
19
19
margin-bottom : 8px ;
20
+
21
+ a {
22
+ color : #333 ;
23
+ }
20
24
}
21
25
22
26
h2 {
Original file line number Diff line number Diff line change 185
185
user :
186
186
said : " {{username}} said:"
187
187
profile : " Profile"
188
+ show_profile : " Show Profile"
188
189
mute : " Mute"
189
190
edit : " Edit Preferences"
190
191
download_archive : " download archive of my posts"
581
582
title : Topic Rank Details
582
583
583
584
topic :
584
- filter_to : " Toggle only posts by {{username}} in this topic"
585
+ filter_to : " Show only posts by {{username}} in this topic"
585
586
create_in : ' Create {{categoryName}} Topic'
586
587
create : ' Create Topic'
587
588
create_long : ' Create a new Topic'
You can’t perform that action at this time.
0 commit comments