Mercurial > kallithea
comparison rhodecode/templates/admin/gists/new.html @ 3840:dc4644865e8b beta
Implemented simple gist functionality ref #530.
- creation of public/private gists with given lifetime
- rhodecode-gist CLI for quick gist creation
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 11 May 2013 20:24:02 +0200 |
parents | |
children | 4eaeae84f474 |
comparison
equal
deleted
inserted
replaced
3839:9dec870411e0 | 3840:dc4644865e8b |
---|---|
1 ## -*- coding: utf-8 -*- | |
2 <%inherit file="/base/base.html"/> | |
3 | |
4 <%def name="title()"> | |
5 ${_('New gist')} · ${c.rhodecode_name} | |
6 </%def> | |
7 | |
8 <%def name="js_extra()"> | |
9 <script type="text/javascript" src="${h.url('/js/codemirror.js')}"></script> | |
10 </%def> | |
11 <%def name="css_extra()"> | |
12 <link rel="stylesheet" type="text/css" href="${h.url('/css/codemirror.css')}"/> | |
13 </%def> | |
14 | |
15 <%def name="breadcrumbs_links()"> | |
16 ${_('New gist')} | |
17 </%def> | |
18 | |
19 <%def name="page_nav()"> | |
20 ${self.menu('gists')} | |
21 </%def> | |
22 | |
23 <%def name="main()"> | |
24 <div class="box"> | |
25 <!-- box / title --> | |
26 <div class="title"> | |
27 ${self.breadcrumbs()} | |
28 </div> | |
29 | |
30 <div class="table"> | |
31 <div id="files_data"> | |
32 ${h.form(h.url('gists'), method='post',id='eform')} | |
33 <div> | |
34 <div class="gravatar"> | |
35 <img alt="gravatar" src="${h.gravatar_url(h.email_or_none(c.rhodecode_user.full_contact),32)}"/> | |
36 </div> | |
37 <textarea style="resize:vertical; width:400px;border: 1px solid #ccc;border-radius: 3px;" id="description" name="description" placeholder="${_('Gist description ...')}"></textarea> | |
38 </div> | |
39 <div id="body" class="codeblock"> | |
40 <div style="padding: 10px 10px 10px 22px;color:#666666"> | |
41 ##<input type="text" value="" size="30" name="filename" id="filename" placeholder="gistfile1.txt"> | |
42 ${h.text('filename', size=30, placeholder='gistfile1.txt')} | |
43 ##<input type="text" value="" size="30" name="filename" id="filename" placeholder="gistfile1.txt"> | |
44 ${h.select('lifetime', '', c.lifetime_options)} | |
45 </div> | |
46 <div id="editor_container"> | |
47 <pre id="editor_pre"></pre> | |
48 <textarea id="editor" name="content" style="display:none"></textarea> | |
49 </div> | |
50 </div> | |
51 <div style="padding-top: 5px"> | |
52 ${h.submit('private',_('Create private gist'),class_="ui-btn yellow")} | |
53 ${h.submit('public',_('Create public gist'),class_="ui-btn")} | |
54 ${h.reset('reset',_('Reset'),class_="ui-btn")} | |
55 </div> | |
56 ${h.end_form()} | |
57 <script type="text/javascript"> | |
58 initCodeMirror('editor',''); | |
59 </script> | |
60 </div> | |
61 </div> | |
62 | |
63 </div> | |
64 </%def> |