File tree Expand file tree Collapse file tree 5 files changed +5
-12
lines changed
src/main/twirl/gitbucket/gist Expand file tree Collapse file tree 5 files changed +5
-12
lines changed Original file line number Diff line number Diff line change 7
7
editable: Boolean)(implicit context: gitbucket.core.controller.Context)
8
8
@import gitbucket.core.view.helpers
9
9
@gitbucket.core.html.main(if(gist.description.isEmpty) gist.repositoryName else gist.description){
10
- < link href ="@context.path/plugin-assets/gist/style.css " rel ="stylesheet ">
10
+ < link href ="@context.path/plugin-assets/gist/style.css?@helpers.hashQuery " rel ="stylesheet ">
11
11
< div class ="content-wrapper main-center ">
12
12
< div class ="gist-content ">
13
13
@gitbucket.gist.html.header(gist, forkedCount, editable)
Original file line number Diff line number Diff line change 3
3
@import gitbucket.gist.model.Mode
4
4
@import gitbucket.core.view.helpers
5
5
@gitbucket.core.html.main("Snippets"){
6
- < link href ="@context.path/plugin-assets/gist/style.css " rel ="stylesheet ">
6
+ < link href ="@context.path/plugin-assets/gist/style.css?@helpers.hashQuery " rel ="stylesheet ">
7
7
< div class ="content-wrapper main-center ">
8
8
< div class ="gist-content ">
9
9
< div class ="head ">
@@ -22,13 +22,6 @@ <h1 style="margin: 0px;">New snippet</h1>
22
22
< span class ="label label-warning "> Private</ span >
23
23
}
24
24
< div class ="pull-right ">
25
- @*
26
- @if(gist.get.mode == "SECRET"){
27
- < a href ="@path/gist/@gist.get.userName/@gist.get.repositoryName/public " class ="btn btn-default "> Make public</ a >
28
- } else {
29
- < a href ="@path/gist/@gist.get.userName/@gist.get.repositoryName/secret " class ="btn btn-default "> Make secret</ a >
30
- }
31
- *@
32
25
< a href ="@context.path/gist/@gist.get.userName/@gist.get.repositoryName/delete " class ="btn btn-danger " id ="delete "> Delete</ a >
33
26
</ div >
34
27
< div class ="muted " style ="margin-left: 30px; font-size: 80%; ">
Original file line number Diff line number Diff line change 5
5
editable: Boolean)(implicit context: gitbucket.core.controller.Context)
6
6
@import gitbucket.core.view.helpers
7
7
@gitbucket.core.html.main("Snippets"){
8
- < link href ="@context.path/plugin-assets/gist/style.css " rel ="stylesheet ">
8
+ < link href ="@context.path/plugin-assets/gist/style.css?@helpers.hashQuery " rel ="stylesheet ">
9
9
< div class ="content-wrapper main-center ">
10
10
< div class ="gist-content ">
11
11
@gitbucket.gist.html.header(gist, forkedCount, editable)
Original file line number Diff line number Diff line change 5
5
@import gitbucket.gist.model.Mode
6
6
@import gitbucket.core.view.helpers
7
7
@gitbucket.core.html.main(gistUser.map(user => s"${user.userName}'s Snippets").getOrElse("Snippets")){
8
- < link href ="@context.path/plugin-assets/gist/style.css " rel ="stylesheet ">
8
+ < link href ="@context.path/plugin-assets/gist/style.css?@helpers.hashQuery " rel ="stylesheet ">
9
9
< div class ="content-wrapper main-center ">
10
10
< div class ="gist-content ">
11
11
< div class ="head ">
Original file line number Diff line number Diff line change 6
6
@import gitbucket.core.view.helpers
7
7
@import org.eclipse.jgit.diff.DiffEntry.ChangeType
8
8
@gitbucket.core.html.main(s"Revisions · ${gist.repositoryName}"){
9
- < link href ="@context.path/plugin-assets/gist/style.css " rel ="stylesheet ">
9
+ < link href ="@context.path/plugin-assets/gist/style.css?@helpers.hashQuery " rel ="stylesheet ">
10
10
< div class ="content-wrapper main-center ">
11
11
< div class ="gist-content ">
12
12
@gitbucket.gist.html.header(gist, forkedCount, editable)
You can’t perform that action at this time.
0 commit comments