diff --git a/config.ini-example b/config.ini-example index 66364cf..5575ba1 100644 --- a/config.ini-example +++ b/config.ini-example @@ -23,6 +23,7 @@ show_ssh_remote = false ; display remote URL for SSH ssh_host = '' ; host to use for cloning via HTTP (default: none => uses gitlist web host) ssh_url_subdir = '' ; if cloning via SSH is triggered using special dir (e.g. ssh://example.com/git/repo.git) ; has to end with trailing slash +ssh_port = '' ; port to use for cloning via SSH (default: 22 => standard ssh port) ssh_user = 'git' ; user to use for cloning via SSH ssh_user_dynamic = false ; when enabled, ssh_user is set to $_SERVER['PHP_AUTH_USER'] @@ -54,4 +55,4 @@ http_user_dynamic = false ; when enabled, http_user is set to $_SERVER['PHP_AUTH ; custom avatar service [avatar] ; url = '//gravatar.com/avatar/' -; query[] = 'd=identicon' \ No newline at end of file +; query[] = 'd=identicon' diff --git a/src/Application.php b/src/Application.php index 66a2b03..fd0f119 100644 --- a/src/Application.php +++ b/src/Application.php @@ -83,6 +83,7 @@ class Application extends SilexApplication $twig->addGlobal('ssh_user', $config->get('clone_button', 'ssh_user_dynamic') ? $_SERVER['PHP_AUTH_USER'] : $config->get('clone_button', 'ssh_user')); $twig->addGlobal('ssh_url_subdir', $config->get('clone_button', 'ssh_url_subdir')); $twig->addGlobal('ssh_host', $config->get('clone_button', 'ssh_host')); + $twig->addGlobal('ssh_port', $config->get('clone_button', 'ssh_port')); return $twig; })); diff --git a/themes/bootstrap3/twig/layout_page.twig b/themes/bootstrap3/twig/layout_page.twig index 2873656..b0b3bf1 100644 --- a/themes/bootstrap3/twig/layout_page.twig +++ b/themes/bootstrap3/twig/layout_page.twig @@ -8,11 +8,11 @@

{% if show_ssh_remote %} - + {% endif %} {% if show_http_remote %} - + {% endif %}
diff --git a/themes/default/twig/layout_page.twig b/themes/default/twig/layout_page.twig index b424b96..307fffb 100644 --- a/themes/default/twig/layout_page.twig +++ b/themes/default/twig/layout_page.twig @@ -7,11 +7,11 @@
{% if page in ['commits', 'searchcommits'] %} - {% else %} - {% endif %} diff --git a/themes/default/twig/tree.twig b/themes/default/twig/tree.twig index cade516..66ce9c3 100644 --- a/themes/default/twig/tree.twig +++ b/themes/default/twig/tree.twig @@ -30,10 +30,10 @@ {% endif %}

{% if show_ssh_remote %} - + {% endif %} {% if show_http_remote %} - + {% endif %}