1
1
mirror of https://github.com/go-gitea/gitea.git synced 2024-09-30 15:11:22 +02:00
gitea/templates/repo
Stefan Kalscheuer 0b177574c9 Only show SSH clone URL if signed in (#2169) (#2170)
* Add configuration flag SSH_EXPOSE_ANONYMOUS

If this flag (default True) is set to false, the SSH clone URL will only be exposed if the current user is signed in.

* Default SSH exposure set to false

To match GitHub and for security reasons, SSH URL exposure is disabled by default.
In addition to that. minor code changes have been applied.

Signed-off-by: Stefan Kalscheuer <stefan@stklcode.de>

* Add integration tests

* Hide clone button neither HTTP and SSH is enabled

Signed-off-by: Stefan Kalscheuer <stefan@stklcode.de>
2017-07-15 22:21:51 +08:00
..
diff
editor
issue
pulls
release
settings
wiki Only show SSH clone URL if signed in (#2169) (#2170) 2017-07-15 22:21:51 +08:00
bare.tmpl Only show SSH clone URL if signed in (#2169) (#2170) 2017-07-15 22:21:51 +08:00
branch_dropdown.tmpl
commits_table.tmpl
commits.tmpl
create.tmpl
forks.tmpl
graph.tmpl
header.tmpl
home.tmpl Only show SSH clone URL if signed in (#2169) (#2170) 2017-07-15 22:21:51 +08:00
migrate.tmpl
user_cards.tmpl
view_file.tmpl
view_list.tmpl
watchers.tmpl