File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
src/main/twirl/gitbucket/gist Expand file tree Collapse file tree 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>
5252 < a href ="@context.path/gist/@gist.get.userName/@gist.get.repositoryName " class ="btn btn-default "> Cancel</ a >
5353 }
5454 < 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 >
5864 </ div >
5965 @if(gist.isDefined){
6066 < 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>
6369 }
6470 </ div >
6571 </ div >
66- @if(gist.isEmpty){
67- < input type ="hidden " id ="private " name ="private " value ="false "/>
68- }
6972 < input type ="hidden " id ="count " name ="count " value ="@files.size "/>
7073 </ form >
7174 </ div >
You can’t perform that action at this time.
0 commit comments