Changeset - 3a65e48d81fe
[Not reviewed]
default
0 3 0
domruf - 8 years ago 2017-06-27 22:32:20
dominikruf@gmail.com
templates: make gist edit and new page look more similar

- remove gravatar from edit page
- add no-padding to edit page
- use the same order and alignment of the mimetype and filename elements on both pages
3 files changed with 4 insertions and 18 deletions:
0 comments (0 inline, 0 general)
kallithea/public/css/style.css
Show inline comments
 
@@ -3271,23 +3271,12 @@ div.codeblock div.code-header div.author
 
}
 

	
 
ul.user_group_member li {
 
    clear: both;
 
}
 

	
 
select.pull-right-auto-width {
 
    float: right;
 
    width: auto;
 
}
 

	
 
span.expand-available {
 
    display: block;
 
    overflow: hidden;
 
    padding-right: 15px;
 
}
 

	
 
#content div.panel .changelog-panel > .changelog-heading,
 
#content div.panel .changelog-panel > ul.pagination {
 
    margin-left: 100px;
 
}
 

	
 
textarea.commit-message {
kallithea/templates/admin/gists/edit.html
Show inline comments
 
@@ -42,13 +42,12 @@
 
            </script>
 
        </div>
 

	
 
        <div id="files_data">
 
          ${h.form(h.url('edit_gist', gist_id=c.gist.gist_access_id), method='post', id='eform')}
 
            <div>
 
                ${h.gravatar_div(request.authuser.email, size=32)}
 
                <input type="hidden" value="${c.file_changeset.raw_id}" name="parent_hash">
 
                <textarea class="form-control commit-message"
 
                          id="description" name="description"
 
                          placeholder="${_('Gist description ...')}">${c.gist.gist_description}</textarea>
 
                <div>
 
                    <label>
 
@@ -69,13 +68,13 @@
 
                <div id="body" class="panel panel-default form-inline">
 
                    <div class="panel-heading">
 
                        <input type="hidden" value="${h.safe_unicode(file.path)}" name="org_files">
 
                        <input class="form-control" id="filename_${h.FID('f',file.path)}" name="files" size="30" type="text" value="${h.safe_unicode(file.path)}">
 
                        <select class="form-control" id="mimetype_${h.FID('f',file.path)}" name="mimetypes"></select>
 
                    </div>
 
                    <div class="panel-body">
 
                    <div class="panel-body no-padding">
 
                        <div id="editor_container">
 
                            <textarea id="editor_${h.FID('f',file.path)}" name="contents" style="display:none">${file.content}</textarea>
 
                        </div>
 
                    </div>
 
                </div>
 

	
kallithea/templates/admin/gists/new.html
Show inline comments
 
@@ -37,18 +37,16 @@
 
                    <label>
 
                        ${_('Gist lifetime')}
 
                        ${h.select('lifetime', '', c.lifetime_options)}
 
                    </label>
 
                </div>
 
            </div>
 
            <div id="body" class="panel panel-default">
 
            <div id="body" class="panel panel-default form-inline">
 
                <div class="panel-heading">
 
                    <select class="form-control pull-right-auto-width" id="mimetype" name="mimetype"></select>
 
                    <span class="expand-available">
 
                      ${h.text('filename', size=30, placeholder=_('Name this gist ...'), class_='form-control auto-width')}
 
                    </span>
 
                    ${h.text('filename', size=30, placeholder=_('Name this gist ...'), class_='form-control')}
 
                    <select class="form-control" id="mimetype" name="mimetype"></select>
 
                </div>
 
                <div class="panel-body no-padding">
 
                        <textarea id="editor" name="content"></textarea>
 
                </div>
 
            </div>
 
            <div>
0 comments (0 inline, 0 general)