|
12 | 12 | @recent.map { gist =>
|
13 | 13 | <li style="float: left; width: 200px;">
|
14 | 14 | <i class="octicon octicon-gist" style="width: 24px; height: 24px;"></i>
|
15 |
| - <div style="margin-left: 26px; font-size: 80%; position: relative; top: -24px; line-height: normal; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;"> |
| 15 | + <div style="margin-left: 26px; font-size: 90%; position: relative; top: -24px; line-height: normal; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;"> |
16 | 16 | <a class="strong" href="@path/gist/@gist.userName/@gist.repositoryName">@gist.title</a><br>
|
17 | 17 | @if(gist.description.nonEmpty){
|
18 | 18 | <span class="muted">@gist.description</span>
|
|
24 | 24 | }
|
25 | 25 | </ul>
|
26 | 26 | <div class="pull-right">
|
27 |
| - <a href="@path/gist/@context.loginAccount.get.userName" class="btn">Your Snippets</a> |
| 27 | + <a href="@path/gist/@context.loginAccount.get.userName" class="btn btn-default">Your Snippets</a> |
28 | 28 | </div>
|
29 | 29 | </div>
|
30 | 30 | } else {
|
|
38 | 38 | }
|
39 | 39 | <div class="pull-right">
|
40 | 40 | @if(gist.get.isPrivate){
|
41 |
| - <a href="@path/gist/@gist.get.userName/@gist.get.repositoryName/public" class="btn">Make public</a> |
| 41 | + <a href="@path/gist/@gist.get.userName/@gist.get.repositoryName/public" class="btn btn-default">Make public</a> |
42 | 42 | } else {
|
43 |
| - <a href="@path/gist/@gist.get.userName/@gist.get.repositoryName/secret" class="btn">Make secret</a> |
| 43 | + <a href="@path/gist/@gist.get.userName/@gist.get.repositoryName/secret" class="btn btn-default">Make secret</a> |
44 | 44 | }
|
45 |
| - <a href="@path/gist/@gist.get.userName/@gist.get.repositoryName/delete" class="btn" id="delete">Delete</a> |
| 45 | + <a href="@path/gist/@gist.get.userName/@gist.get.repositoryName/delete" class="btn btn-default" id="delete">Delete</a> |
46 | 46 | </div>
|
47 | 47 | </div>
|
48 | 48 | <div class="muted" style="margin-top: -10px; margin-left: 30px;">
|
|
53 | 53 | </div>
|
54 | 54 | <hr style="margin-bottom: 20px;"/>
|
55 | 55 | <div class="container body">
|
56 |
| - <form id="form" method="POST" action="#"> |
57 |
| - <input type="text" name="description" id="description" style="width: 900px;" value="@gist.map(_.description)" placeholder="Snippet descriptions..."/> |
| 56 | + <form id="form" method="POST" action="#" class="form-inline"> |
| 57 | + <input type="text" name="description" id="description" class="form-control input-lg" style="width: 900px; margin-bottom: 8px;" value="@gist.map(_.description)" placeholder="Snippet descriptions..."/> |
58 | 58 | <div id="editors">
|
59 | 59 | @files.zipWithIndex.map { case ((fileName, content), i) =>
|
60 | 60 | @gitbucket.gist.html.editor(i, fileName, content)
|
61 | 61 | }
|
62 | 62 | </div>
|
63 | 63 | <div>
|
64 |
| - <input type="button" value="Add file" class="btn" id="add_file"> |
| 64 | + <input type="button" value="Add file" class="btn btn-lg btn-default" id="add_file"> |
65 | 65 | <div class="pull-right">
|
66 | 66 | @if(gist.isDefined){
|
67 |
| - <a href="@path/gist/@gist.get.userName/@gist.get.repositoryName" class="btn">Cancel</a> |
68 |
| - <input type="submit" value="Update" class="btn btn-success submit_snippet" id="update_snippet"> |
| 67 | + <a href="@path/gist/@gist.get.userName/@gist.get.repositoryName" class="btn btn-lg btn-default">Cancel</a> |
| 68 | + <input type="submit" value="Update" class="btn btn-lg btn-success submit_snippet" id="update_snippet"> |
69 | 69 | } else {
|
70 |
| - <input type="submit" value="Create private Snippet" class="btn submit_snippet" id="create_private_snippet"> |
71 |
| - <input type="submit" value="Create public Snippet" class="btn submit_snippet" id="create_public_snippet"> |
| 70 | + <input type="submit" value="Create private Snippet" class="btn btn-lg btn-default submit_snippet" id="create_private_snippet"> |
| 71 | + <input type="submit" value="Create public Snippet" class="btn btn-lg btn-default submit_snippet" id="create_public_snippet"> |
72 | 72 | }
|
73 | 73 | </div>
|
74 | 74 | </div>
|
|
0 commit comments