File tree Expand file tree Collapse file tree 2 files changed +13
-12
lines changed Expand file tree Collapse file tree 2 files changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ pub(crate) struct Build {
28
28
struct BuildsPage {
29
29
metadata : Option < MetaData > ,
30
30
builds : Vec < Build > ,
31
- build_log : Option < Build > ,
31
+ build_details : Option < Build > ,
32
32
limits : Limits ,
33
33
}
34
34
@@ -68,7 +68,7 @@ pub fn build_list_handler(req: &mut Request) -> IronResult<Response> {
68
68
)
69
69
) ;
70
70
71
- let mut build_log = None ;
71
+ let mut build_details = None ;
72
72
// FIXME: getting builds.output may cause performance issues when release have tons of builds
73
73
let mut builds = query
74
74
. into_iter ( )
@@ -85,7 +85,7 @@ pub fn build_list_handler(req: &mut Request) -> IronResult<Response> {
85
85
} ;
86
86
87
87
if id == req_build_id {
88
- build_log = Some ( build. clone ( ) ) ;
88
+ build_details = Some ( build. clone ( ) ) ;
89
89
}
90
90
91
91
build
@@ -113,7 +113,7 @@ pub fn build_list_handler(req: &mut Request) -> IronResult<Response> {
113
113
BuildsPage {
114
114
metadata : MetaData :: from_crate ( & conn, & name, & version) ,
115
115
builds,
116
- build_log ,
116
+ build_details ,
117
117
limits,
118
118
}
119
119
. into_response ( req)
Original file line number Diff line number Diff line change 14
14
< div class ="recent-releases-container ">
15
15
{# If there is a build log then show it #}
16
16
{# TODO: When viewing a build log, show a back button or a hide button #}
17
- {%- if build_log -%}
17
+ {%- if build_details -%}
18
18
< div class ="release ">
19
- < strong > Build #{{ build_log .id }} {{ build_log .build_time | date(format="%+") }}</ strong >
19
+ < strong > Build #{{ build_details .id }} {{ build_details .build_time | date(format="%+") }}</ strong >
20
20
</ div >
21
21
22
22
{%- filter dedent -%}
23
23
< pre >
24
- $ rustc --version
25
- {{ build_log.rustc_version }}
26
- $ docsrs --version
27
- {{ build_log.docsrs_version }}
28
- $ docsrs ...
29
- {{ build_log.output }}
24
+ # rustc version
25
+ {{ build_details.rustc_version }}
26
+ # docs.rs version
27
+ {{ build_details.docsrs_version }}
28
+
29
+ # build log
30
+ {{ build_details.output }}
30
31
</ pre >
31
32
{%- endfilter -%}
32
33
{%- endif -%}
You can’t perform that action at this time.
0 commit comments