Skip to content

Commit 4fe79f2

Browse files
committed
Add hash to the link to style.css
1 parent b073b83 commit 4fe79f2

File tree

5 files changed

+5
-12
lines changed

5 files changed

+5
-12
lines changed

Diff for: src/main/twirl/gitbucket/gist/detail.scala.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
editable: Boolean)(implicit context: gitbucket.core.controller.Context)
88
@import gitbucket.core.view.helpers
99
@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[email protected]" rel="stylesheet">
1111
<div class="content-wrapper main-center">
1212
<div class="gist-content">
1313
@gitbucket.gist.html.header(gist, forkedCount, editable)

Diff for: src/main/twirl/gitbucket/gist/edit.scala.html

+1-8
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
@import gitbucket.gist.model.Mode
44
@import gitbucket.core.view.helpers
55
@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[email protected]" rel="stylesheet">
77
<div class="content-wrapper main-center">
88
<div class="gist-content">
99
<div class="head">
@@ -22,13 +22,6 @@ <h1 style="margin: 0px;">New snippet</h1>
2222
<span class="label label-warning">Private</span>
2323
}
2424
<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-
*@
3225
<a href="@context.path/gist/@gist.get.userName/@gist.get.repositoryName/delete" class="btn btn-danger" id="delete">Delete</a>
3326
</div>
3427
<div class="muted" style="margin-left: 30px; font-size: 80%;">

Diff for: src/main/twirl/gitbucket/gist/forks.scala.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
editable: Boolean)(implicit context: gitbucket.core.controller.Context)
66
@import gitbucket.core.view.helpers
77
@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[email protected]" rel="stylesheet">
99
<div class="content-wrapper main-center">
1010
<div class="gist-content">
1111
@gitbucket.gist.html.header(gist, forkedCount, editable)

Diff for: src/main/twirl/gitbucket/gist/list.scala.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
@import gitbucket.gist.model.Mode
66
@import gitbucket.core.view.helpers
77
@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[email protected]" rel="stylesheet">
99
<div class="content-wrapper main-center">
1010
<div class="gist-content">
1111
<div class="head">

Diff for: src/main/twirl/gitbucket/gist/revisions.scala.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
@import gitbucket.core.view.helpers
77
@import org.eclipse.jgit.diff.DiffEntry.ChangeType
88
@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[email protected]" rel="stylesheet">
1010
<div class="content-wrapper main-center">
1111
<div class="gist-content">
1212
@gitbucket.gist.html.header(gist, forkedCount, editable)

0 commit comments

Comments
 (0)