File tree 1 file changed +9
-6
lines changed
src/main/twirl/gitbucket/gist
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -52,9 +52,15 @@ <h1 style="margin: 0px;">New snippet</h1>
52
52
< a href ="@context.path/gist/@gist.get.userName/@gist.get.repositoryName " class ="btn btn-default "> Cancel</ a >
53
53
}
54
54
< div class ="btn-group " data-toggle ="buttons ">
55
- < label class ="btn btn-default btn-mini @if(gist.isEmpty || gist.get.mode == Mode.Public.code ){active} "> < input type ="radio " value ="PUBLIC " name ="mode "> Public</ label >
56
- < label class ="btn btn-default btn-mini @if(gist.isDefined && gist.get.mode == Mode.Secret.code ){active} "> < input type ="radio " value ="SECRET " name ="mode "> Secret</ label >
57
- < label class ="btn btn-default btn-mini @if(gist.isDefined && gist.get.mode == Mode.Private.code){active} "> < input type ="radio " value ="PRIVATE " name ="mode "> Private</ label >
55
+ < label class ="btn btn-default btn-mini @if(gist.isEmpty || gist.get.mode == Mode.Public.code ){active} ">
56
+ < input type ="radio " value ="PUBLIC " name ="mode " @if(gist.isEmpty || gist.get.mode == Mode.Public.code ){checked} > Public
57
+ </ label >
58
+ < label class ="btn btn-default btn-mini @if(gist.isDefined && gist.get.mode == Mode.Secret.code ){active} ">
59
+ < input type ="radio " value ="SECRET " name ="mode " @if(gist.isDefined && gist.get.mode == Mode.Secret.code ){checked} > Secret
60
+ </ label >
61
+ < label class ="btn btn-default btn-mini @if(gist.isDefined && gist.get.mode == Mode.Private.code){active} ">
62
+ < input type ="radio " value ="PRIVATE " name ="mode " @if(gist.isDefined && gist.get.mode == Mode.Private.code){checked} > Private
63
+ </ label >
58
64
</ div >
59
65
@if(gist.isDefined){
60
66
< input type ="submit " value ="Update " class ="btn btn-success submit_snippet " id ="update_snippet ">
@@ -63,9 +69,6 @@ <h1 style="margin: 0px;">New snippet</h1>
63
69
}
64
70
</ div >
65
71
</ div >
66
- @if(gist.isEmpty){
67
- < input type ="hidden " id ="private " name ="private " value ="false "/>
68
- }
69
72
< input type ="hidden " id ="count " name ="count " value ="@files.size "/>
70
73
</ form >
71
74
</ div >
You can’t perform that action at this time.
0 commit comments