# HG changeset patch # User Thomas De Schampheleire # Date 1428347105 -7200 # Node ID 8924172b07ff6abe363a3c8fc4b5e731d7ec01c5 # Parent beb4cbf30d00634b8c1ebe805e22e1e14f25fc4d summary: repeat repo type in front of clone URL Repeatedly, users report cloning problems of the Kallithea sources on IRC, caused by them assuming that it is a Git repository. Try to solve this problem by repeating the repository tag, indicating 'hg' or 'git' in front of the clone URL. Additionally, decrease the font size of the URL a notch, and improve alignment with the repotag by removing top/bottom padding. To avoid duplication of the repotag logic, introduce a mako def for it. diff -r beb4cbf30d00 -r 8924172b07ff kallithea/public/css/style.css --- a/kallithea/public/css/style.css Sun Apr 05 21:52:05 2015 +0200 +++ b/kallithea/public/css/style.css Mon Apr 06 21:05:05 2015 +0200 @@ -1276,8 +1276,8 @@ #content div.box div.form div.fields div.field div.input input#clone_url, #content div.box div.form div.fields div.field div.input input#clone_url_id { - font-size: 16px; - padding: 2px; + font-size: 14px; + padding: 0 2px; } #content div.box div.form div.fields div.field div.file input { diff -r beb4cbf30d00 -r 8924172b07ff kallithea/templates/base/base.html --- a/kallithea/templates/base/base.html Sun Apr 05 21:52:05 2015 +0200 +++ b/kallithea/templates/base/base.html Mon Apr 06 21:05:05 2015 +0200 @@ -85,6 +85,15 @@ +<%def name="repotag(repo)"> + %if h.is_hg(repo): + hg + %endif + %if h.is_git(repo): + git + %endif + + <%def name="repo_context_bar(current=None, rev=None)"> <% rev = None if rev == 'tip' else rev %> <% @@ -103,12 +112,7 @@

- %if h.is_hg(c.db_repo): - hg - %endif - %if h.is_git(c.db_repo): - git - %endif + ${repotag(c.db_repo)} ## public/private %if c.db_repo.private: diff -r beb4cbf30d00 -r 8924172b07ff kallithea/templates/data_table/_dt_elements.html --- a/kallithea/templates/data_table/_dt_elements.html Sun Apr 05 21:52:05 2015 +0200 +++ b/kallithea/templates/data_table/_dt_elements.html Mon Apr 06 21:05:05 2015 +0200 @@ -2,6 +2,8 @@ ## usage: ## <%namespace name="dt" file="/data_table/_dt_elements.html"/> +<%namespace name="base" file="/base/base.html"/> + <%def name="quick_menu(repo_name)">

+ ${self.repotag(c.db_repo)}