File tree Expand file tree Collapse file tree 4 files changed +4
-1
lines changed Expand file tree Collapse file tree 4 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,7 @@ pub fn build_list_handler(req: &mut Request) -> IronResult<Response> {
140
140
Page :: new ( builds_page)
141
141
. set_true ( "show_package_navigation" )
142
142
. set_true ( "package_navigation_builds_tab" )
143
+ . set_true ( "show_clipboard" )
143
144
. to_resp ( "builds" )
144
145
}
145
146
}
Original file line number Diff line number Diff line change @@ -290,6 +290,7 @@ pub fn crate_details_handler(req: &mut Request) -> IronResult<Response> {
290
290
. set_true ( "show_package_navigation" )
291
291
. set_true ( "javascript_highlightjs" )
292
292
. set_true ( "package_navigation_crate_tab" )
293
+ . set_true ( "show_clipboard" )
293
294
. to_resp ( "crate_details" )
294
295
}
295
296
MatchVersion :: Semver ( ( version, _) ) => {
Original file line number Diff line number Diff line change @@ -245,6 +245,7 @@ pub fn source_browser_handler(req: &mut Request) -> IronResult<Response> {
245
245
let page = Page :: new ( list)
246
246
. set_bool ( "show_parent_link" , !req_path. is_empty ( ) )
247
247
. set_true ( "javascript_highlightjs" )
248
+ . set_true ( "show_clipboard" )
248
249
. set_true ( "show_package_navigation" )
249
250
. set_true ( "package_source_tab" ) ;
250
251
Original file line number Diff line number Diff line change 35
35
<div class =" cratesfyi-package-container" >
36
36
<div class =" container" >
37
37
<h1 id =" crate-title" >{{ #if title }} {{ title }} {{ else }} {{ content.metadata.name }} {{ content.metadata.version }} {{ /if }} </h1 >
38
- <i class =" fa fa-clipboard fa-1" id =" clipboard" aria-label =" Copy crate name and version information" ></i >
38
+ {{ #if varsb.show_clipboard }} <i class =" fa fa-clipboard fa-1" id =" clipboard" aria-label =" Copy crate name and version information" ></i >{{ /if }}
39
39
<div class =" description" >{{ #if content.metadata.description }} {{ content.metadata.description }} {{ else }} {{ varss.description }} {{ /if }} </div >
40
40
41
41
{{ #if ../varsb.show_package_navigation }}
You can’t perform that action at this time.
0 commit comments