# HG changeset patch # User Daniel Dourvaris # Date 2020-07-16 10:37:18 # Node ID 9a24f7d4062ccb2b2523c8c91d568e98ba1b3afe # Parent 5be9b6391c0ab48069846a16586118fe8d34b9bd downloads: added more archive options that we support. Exposing this to users so they actually know we support more then .zip downloads. diff --git a/rhodecode/lib/helpers.py b/rhodecode/lib/helpers.py --- a/rhodecode/lib/helpers.py +++ b/rhodecode/lib/helpers.py @@ -86,6 +86,7 @@ from rhodecode.lib.utils2 import ( from rhodecode.lib.markup_renderer import MarkupRenderer, relative_links from rhodecode.lib.vcs.exceptions import CommitDoesNotExistError from rhodecode.lib.vcs.backends.base import BaseChangeset, EmptyCommit +from rhodecode.lib.vcs.conf.settings import ARCHIVE_SPECS from rhodecode.lib.index.search_utils import get_matching_line_offsets from rhodecode.config.conf import DATE_FORMAT, DATETIME_FORMAT from rhodecode.model.changeset_status import ChangesetStatusModel diff --git a/rhodecode/lib/vcs/conf/settings.py b/rhodecode/lib/vcs/conf/settings.py --- a/rhodecode/lib/vcs/conf/settings.py +++ b/rhodecode/lib/vcs/conf/settings.py @@ -41,7 +41,7 @@ BACKENDS = { ARCHIVE_SPECS = [ - ('tbz2', 'application/x-bzip2', 'tbz2'), + ('tbz2', 'application/x-bzip2', '.tbz2'), ('tbz2', 'application/x-bzip2', '.tar.bz2'), ('tgz', 'application/x-gzip', '.tgz'), diff --git a/rhodecode/public/css/buttons.less b/rhodecode/public/css/buttons.less --- a/rhodecode/public/css/buttons.less +++ b/rhodecode/public/css/buttons.less @@ -262,10 +262,17 @@ input[type="button"] { } -.btn-action-switcher-container{ +.btn-action-switcher-container { position: absolute; top: 100%; - right: 0; + + &.left-align { + left: 0; + } + &.right-align { + right: 0; + } + } .btn-action-switcher { diff --git a/rhodecode/templates/files/files_browser.mako b/rhodecode/templates/files/files_browser.mako --- a/rhodecode/templates/files/files_browser.mako +++ b/rhodecode/templates/files/files_browser.mako @@ -28,7 +28,7 @@ -
+