mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: allow users to collapse profile after expanding it
This commit is contained in:
parent
9260969101
commit
a64cc9a990
@ -91,8 +91,8 @@ export default Ember.Controller.extend(CanCheckEmails, {
|
|||||||
},
|
},
|
||||||
|
|
||||||
actions: {
|
actions: {
|
||||||
expandProfile() {
|
toggleExtendedProfile() {
|
||||||
this.set('forceExpand', true);
|
this.toggleProperty('forceExpand');
|
||||||
},
|
},
|
||||||
|
|
||||||
showSuspensions() {
|
showSuspensions() {
|
||||||
|
@ -67,12 +67,17 @@
|
|||||||
connectorTagName="li"
|
connectorTagName="li"
|
||||||
args=(hash model=model)}}
|
args=(hash model=model)}}
|
||||||
|
|
||||||
{{#if collapsedInfo}}
|
|
||||||
{{#if viewingSelf}}
|
{{#if viewingSelf}}
|
||||||
<li><a {{action "expandProfile"}} href class="btn">{{d-icon "angle-double-down"}}{{i18n 'user.expand_profile'}}</a></li>
|
<li>
|
||||||
|
<a {{action "toggleExtendedProfile"}} href class="btn">
|
||||||
|
{{#if collapsedInfo}}
|
||||||
|
{{d-icon "angle-double-down"}} {{i18n 'user.expand_profile'}}
|
||||||
|
{{else}}
|
||||||
|
{{d-icon "angle-double-up"}} {{i18n 'user.collapse_profile'}}
|
||||||
|
{{/if}}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
@ -617,6 +617,7 @@ en:
|
|||||||
activity_stream: "Activity"
|
activity_stream: "Activity"
|
||||||
preferences: "Preferences"
|
preferences: "Preferences"
|
||||||
expand_profile: "Expand"
|
expand_profile: "Expand"
|
||||||
|
collapse_profile: "Collapse"
|
||||||
bookmarks: "Bookmarks"
|
bookmarks: "Bookmarks"
|
||||||
bio: "About me"
|
bio: "About me"
|
||||||
invited_by: "Invited By"
|
invited_by: "Invited By"
|
||||||
|
Loading…
Reference in New Issue
Block a user