File tree Expand file tree Collapse file tree 4 files changed +19
-0
lines changed Expand file tree Collapse file tree 4 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ export default DS.Model.extend({
66 created_at : DS . attr ( 'date' ) ,
77 updated_at : DS . attr ( 'date' ) ,
88 downloads : DS . attr ( 'number' ) ,
9+ yanked : DS . attr ( 'boolean' ) ,
910
1011 crate : DS . belongsTo ( 'crate' ) ,
1112 authors : DS . hasMany ( 'users' , { async : true } ) ,
Original file line number Diff line number Diff line change @@ -110,6 +110,11 @@ span.small {
110110 }
111111}
112112
113+ .yanked {
114+ font-size : 80% ;
115+ color : rgb (166 , 0 , 0 )
116+ }
117+
113118span .loading {
114119 display : inline-block ;
115120 width : 16px ;
Original file line number Diff line number Diff line change 2929{{! This is used to set the url of to actually download a file }}
3030<iframe id =' download-frame' style =' display:none' ></iframe >
3131
32+ {{ #if currentVersion.yanked }}
33+ <div class =' crate-info' >
34+ This crate has been yanked, but it is still available for download for
35+ other crates that may be depending on it.
36+ </div >
37+ {{ else }}
3238<div class =' crate-info' >
3339 <div class =' docs' >
3440 {{ #if description }}
116122 <div id =' graph-data' ></div >
117123 </div >
118124</div >
125+ {{ /if }}
119126
120127<div id =' crate-links' >
121128 <div class =' section' >
173180 <li >
174181 {{ #link-to ' crate' this }} {{ num }} {{ /link-to }}
175182 <span class =' date' >{{ date-small created_at }} </span >
183+ {{ #if yanked }}
184+ <span class =' yanked' >yanked</span >
185+ {{ /if }}
176186 </li >
177187 {{ /each }}
178188 </ul >
Original file line number Diff line number Diff line change 1616 <div >
1717 {{ #link-to ' crate' this }} {{ num }} {{ /link-to }}
1818 <span class =' small' >{{ date-long created_at }} </span >
19+ {{ #if yanked }}
20+ <span class =' yanked' >yanked</span >
21+ {{ /if }}
1922 </div >
2023 {{ #link-to ' crate' this class =' arrow' }}
2124 <img src =" /assets/right-arrow-all-versions.png" />
You can’t perform that action at this time.
0 commit comments