| |
@@ -51,6 +51,76 @@
|
| |
<div class="col-md-4">
|
| |
<div class="card">
|
| |
<div class="card-block">
|
| |
+ <h5><strong>Source GIT URLs</strong>{% if
|
| |
+ (authenticated and g.repo_committer) or
|
| |
+ (config['DOC_APP_URL'] and repo and
|
| |
+ repo.settings.get('project_documentation', True))
|
| |
+ %}
|
| |
+ <span class="pull-xs-right"><a data-toggle="collapse" href="#moregiturls"
|
| |
+ aria-expanded="false" aria-controls="moregiturls"
|
| |
+ id="more_gits">more</a></span>{%endif%}</h5>
|
| |
+ <div>
|
| |
+ {% if g.authenticated and g.repo_committer %}
|
| |
+ <div class="form-group">
|
| |
+ <div class="input-group input-group-sm">
|
| |
+ <div class="input-group-addon">SSH</div>
|
| |
+ <input class="form-control" type="text" value="{{
|
| |
+ git_url_ssh }}{{ repo.fullname }}.git" readonly>
|
| |
+ </div>
|
| |
+ </div>
|
| |
+ {% endif %}
|
| |
+ <div class="form-group">
|
| |
+ <div class="input-group input-group-sm">
|
| |
+ <div class="input-group-addon">GIT</div>
|
| |
+ <input class="form-control" type="text" value="{{
|
| |
+ config.get('GIT_URL_GIT') }}{{ repo.fullname }}.git" readonly>
|
| |
+ </div>
|
| |
+ </div>
|
| |
+ <div class="collapse" id="moregiturls">
|
| |
+ {% if config['DOC_APP_URL']
|
| |
+ and repo
|
| |
+ and repo.settings.get('project_documentation', True) %}
|
| |
+ <h5><strong>Docs GIT URLs</strong></h5>
|
| |
+ {% if g.authenticated and g.repo_committer %}
|
| |
+ <div class="form-group">
|
| |
+ <div class="input-group input-group-sm">
|
| |
+ <div class="input-group-addon">SSH</div>
|
| |
+ <input class="form-control" type="text" value="{{
|
| |
+ git_url_ssh }}docs/{{ repo.fullname }}.git" readonly>
|
| |
+ </div>
|
| |
+ </div>
|
| |
+ {% endif %}
|
| |
+ <div class="form-group">
|
| |
+ <div class="input-group input-group-sm">
|
| |
+ <div class="input-group-addon">GIT</div>
|
| |
+ <input class="form-control" type="text" value="{{
|
| |
+ config.get('GIT_URL_GIT') }}docs/{{ repo.fullname }}.git" readonly>
|
| |
+ </div>
|
| |
+ </div>
|
| |
+ {% endif %}
|
| |
+ {% if g.authenticated and g.repo_committer %}
|
| |
+ {% if config.get('ENABLE_TICKETS', True)
|
| |
+ and repo.settings.get('issue_tracker', True) %}
|
| |
+ <h5><strong>Issues GIT URLs</strong></h5>
|
| |
+ <div class="form-group">
|
| |
+ <div class="input-group input-group-sm">
|
| |
+ <div class="input-group-addon">SSH</div>
|
| |
+ <input class="form-control" type="text" value="{{
|
| |
+ git_url_ssh }}tickets/{{ repo.fullname }}.git" readonly>
|
| |
+ </div>
|
| |
+ </div>
|
| |
+ {% endif %}
|
| |
+ <h5><strong>Pull Requests GIT URLs</strong></h5>
|
| |
+ <div class="form-group">
|
| |
+ <div class="input-group input-group-sm">
|
| |
+ <div class="input-group-addon">SSH</div>
|
| |
+ <input class="form-control" type="text" value="{{
|
| |
+ git_url_ssh }}requests/{{ repo.fullname }}.git" readonly>
|
| |
+ </div>
|
| |
+ </div>
|
| |
+ {% endif %}
|
| |
+ </div>
|
| |
+ </div>
|
| |
<h5><strong>Contributors</strong></h5>
|
| |
<div class="m-b-2">
|
| |
<div>
|
| |
@@ -167,76 +237,6 @@
|
| |
</a>
|
| |
</div>
|
| |
{% endif %}
|
| |
- <h5><strong>Source GIT URLs</strong>{% if
|
| |
- (authenticated and g.repo_committer) or
|
| |
- (config['DOC_APP_URL'] and repo and
|
| |
- repo.settings.get('project_documentation', True))
|
| |
- %}
|
| |
- <span class="pull-xs-right"><a data-toggle="collapse" href="#moregiturls"
|
| |
- aria-expanded="false" aria-controls="moregiturls"
|
| |
- id="more_gits">more</a></span>{%endif%}</h5>
|
| |
- <div>
|
| |
- {% if g.authenticated and g.repo_committer %}
|
| |
- <div class="form-group">
|
| |
- <div class="input-group input-group-sm">
|
| |
- <div class="input-group-addon">SSH</div>
|
| |
- <input class="form-control" type="text" value="{{
|
| |
- git_url_ssh }}{{ repo.fullname }}.git" readonly>
|
| |
- </div>
|
| |
- </div>
|
| |
- {% endif %}
|
| |
- <div class="form-group">
|
| |
- <div class="input-group input-group-sm">
|
| |
- <div class="input-group-addon">GIT</div>
|
| |
- <input class="form-control" type="text" value="{{
|
| |
- config.get('GIT_URL_GIT') }}{{ repo.fullname }}.git" readonly>
|
| |
- </div>
|
| |
- </div>
|
| |
- <div class="collapse" id="moregiturls">
|
| |
- {% if config['DOC_APP_URL']
|
| |
- and repo
|
| |
- and repo.settings.get('project_documentation', True) %}
|
| |
- <h5><strong>Docs GIT URLs</strong></h5>
|
| |
- {% if g.authenticated and g.repo_committer %}
|
| |
- <div class="form-group">
|
| |
- <div class="input-group input-group-sm">
|
| |
- <div class="input-group-addon">SSH</div>
|
| |
- <input class="form-control" type="text" value="{{
|
| |
- git_url_ssh }}docs/{{ repo.fullname }}.git" readonly>
|
| |
- </div>
|
| |
- </div>
|
| |
- {% endif %}
|
| |
- <div class="form-group">
|
| |
- <div class="input-group input-group-sm">
|
| |
- <div class="input-group-addon">GIT</div>
|
| |
- <input class="form-control" type="text" value="{{
|
| |
- config.get('GIT_URL_GIT') }}docs/{{ repo.fullname }}.git" readonly>
|
| |
- </div>
|
| |
- </div>
|
| |
- {% endif %}
|
| |
- {% if g.authenticated and g.repo_committer %}
|
| |
- {% if config.get('ENABLE_TICKETS', True)
|
| |
- and repo.settings.get('issue_tracker', True) %}
|
| |
- <h5><strong>Issues GIT URLs</strong></h5>
|
| |
- <div class="form-group">
|
| |
- <div class="input-group input-group-sm">
|
| |
- <div class="input-group-addon">SSH</div>
|
| |
- <input class="form-control" type="text" value="{{
|
| |
- git_url_ssh }}tickets/{{ repo.fullname }}.git" readonly>
|
| |
- </div>
|
| |
- </div>
|
| |
- {% endif %}
|
| |
- <h5><strong>Pull Requests GIT URLs</strong></h5>
|
| |
- <div class="form-group">
|
| |
- <div class="input-group input-group-sm">
|
| |
- <div class="input-group-addon">SSH</div>
|
| |
- <input class="form-control" type="text" value="{{
|
| |
- git_url_ssh }}requests/{{ repo.fullname }}.git" readonly>
|
| |
- </div>
|
| |
- </div>
|
| |
- {% endif %}
|
| |
- </div>
|
| |
- </div>
|
| |
</div>
|
| |
<div class="repo_date" title="{{repo.date_created}}">
|
| |
created {{repo.date_created|humanize}}
|
| |
Fix issue #3099
Signed-off-by: yadneshk yadnesh45@gmail.com