Changeset - 867963eba064
[Not reviewed]
default
0 2 0
Mads Kiilerich - 6 years ago 2019-10-21 01:46:44
mads@kiilerich.com
Grafted from: 182fee47de7c
front-end: tweak display of select2 - both in settings and Summary Download options

New version needs slightly different hacking ...
2 files changed with 12 insertions and 2 deletions:
0 comments (0 inline, 0 general)
kallithea/front-end/kallithea-select2.less
Show inline comments
 
@@ -23,12 +23,18 @@
 
    > .select2-arrow {
 
      display: none;
 
    }
 
  }
 
}
 

	
 
.select2-chosen,
 
.select2-choice > span:first-child,
 
.select2-container .select2-choices .select2-search-field input {
 
    padding: 0 12px;
 
}
 

	
 
// Style these like Bootstrap .dropdown-menu
 
.branch-switcher-dropdown.select2-drop.select2-drop-active,
 
.repo-switcher-dropdown.select2-drop.select2-drop-active {
 
  color: inherit;
 
  background-color: @dropdown-bg;
 
  border: 1px solid @dropdown-border;
 
@@ -63,6 +69,10 @@
 
}
 

	
 
/* fix select2 input style if input-sm is used */
 
.select2-container.input-sm input {
 
  .input-sm;
 
}
 

	
 
.form-inline .select2-container.form-control {
 
  display: inline-block;
 
}
kallithea/templates/summary/summary.html
Show inline comments
 
@@ -101,25 +101,25 @@ ${self.repo_context_bar('summary')}
 
                %endif
 
              </div>
 
            </div>
 

	
 
            <div class="form-group">
 
              <label>${_('Download')}:</label>
 
              <div>
 
              <div class="form-inline">
 
                %if len(c.db_repo_scm_instance.revisions) == 0:
 
                  ${_('There are no downloads yet')}
 
                %elif not c.enable_downloads:
 
                  ${_('Downloads are disabled for this repository')}
 
                    %if h.HasPermissionAny('hg.admin')('enable downloads on from summary'):
 
                        ${h.link_to(_('Enable'),h.url('edit_repo',repo_name=c.repo_name, anchor='repo_enable_downloads'),class_="btn btn-default btn-xs")}
 
                    %endif
 
                %else:
 
                    <span id="${'zip_link'}">
 
                        <a class="btn btn-default btn-sm" href="${h.url('files_archive_home',repo_name=c.db_repo.repo_name,fname='tip.zip')}"><i class="icon-file-zip"></i>${_('Download as zip')}</a>
 
                    </span>
 
                    ${h.hidden('download_options')}
 
                    ${h.hidden('download_options', class_='form-control')}
 
                    <span>
 
                      <label data-toggle="tooltip" title="${_('Check this to download archive with subrepos')}">
 
                          <input id="archive_subrepos" type="checkbox" name="subrepos" />
 
                          ${_('With subrepos')}
 
                      </label>
 
                    </span>
0 comments (0 inline, 0 general)