File tree Expand file tree Collapse file tree 5 files changed +28
-4
lines changed Expand file tree Collapse file tree 5 files changed +28
-4
lines changed Original file line number Diff line number Diff line change
1
+ import Ember from 'ember' ;
2
+
3
+ export default Ember . Component . extend ( {
4
+ user : null ,
5
+ attributeBindings : [ 'title' , 'href' ] ,
6
+ tagName : 'a' ,
7
+
8
+ title : function ( ) {
9
+ return this . get ( 'user.login' ) ;
10
+ } . property ( 'user' ) ,
11
+
12
+ 'href' : function ( ) {
13
+ // TODO replace this with a link to a native crates.io profile
14
+ // page when they exist.
15
+ return 'https://github.com/' + this . get ( 'user.login' ) ;
16
+ } . property ( 'user' ) ,
17
+ } ) ;
Original file line number Diff line number Diff line change @@ -105,6 +105,10 @@ body {
105
105
background : rgb (42 , 79 , 39 );
106
106
box-shadow : inset -2px 2px 4px 0px rgb (36 , 61 , 38 );
107
107
}
108
+
109
+ img {
110
+ vertical-align : top ;
111
+ }
108
112
}
109
113
110
114
#current-user-links {
Original file line number Diff line number Diff line change 5
5
6
6
.info { @include display-flex ; }
7
7
dl {
8
- margin-left : 30px ;
8
+ margin : 0 0 0 30px ;
9
9
line-height : 150% ;
10
10
font-size : 110% ;
11
11
dt {
Original file line number Diff line number Diff line change 94
94
<h3 >Owners</h3 >
95
95
<ul class =' owners' >
96
96
{{ #each owners }}
97
- {{! TODO: hyperlink to a profile page }}
98
- <li >{{ user-avatar user =this size =' medium-small' }} </li >
97
+ <li >
98
+ {{ #user-link user =this }}
99
+ {{ user-avatar user =this size =' medium-small' }}
100
+ {{ /user-link }}
101
+ </li >
99
102
{{ /each }}
100
103
</ul >
101
104
</div >
Original file line number Diff line number Diff line change 7
7
<h2 >Profile Information</h2 >
8
8
9
9
<div class =' info' >
10
- {{ user-avatar user =this size =' medium' }}
10
+ {{ # user-link user = this }} {{ user- avatar user =this size =' medium' }} {{ /user-link }}
11
11
12
12
<dl >
13
13
<dt >Name</dt >
You can’t perform that action at this time.
0 commit comments