show new repo properties only if values are present

This commit is contained in:
Martin Cech
2015-03-26 16:24:46 -04:00
parent 815f86f7fc
commit d6d61bcddb
2 changed files with 8 additions and 0 deletions
@@ -190,16 +190,20 @@ ${render_tool_shed_repository_actions( repository, metadata=metadata, changeset_
%endif
<div style="clear: both"></div>
</div>
%if repository.homepage_url:
<div class="form-row">
<b>Content homepage:</b>
<input name="homepage_url" type="textfield" value="${homepage_url | h}" size="80"/>
<div style="clear: both"></div>
</div>
%endif
%if repository.remote_repository_url:
<div class="form-row">
<b>Development repository:</b>
<input name="remote_repository_url" type="textfield" value="${remote_repository_url | h}" size="80"/>
<div style="clear: both"></div>
</div>
%endif
<div class="form-row">
<b>${sharable_link_label}</b>
<a href="${ repository.share_url }" target="_blank">${ repository.share_url }</a>
@@ -123,14 +123,18 @@
## ${render_long_description( to_html_string( repository.long_description ) )}
</div>
%endif
%if repository.homepage_url:
<div class="form-row">
<b>Content homepage:</b>
<a href="${repository.homepage_url | h}" target="_blank">${repository.homepage_url | h}</a>
</div>
%endif
%if repository.remote_repository_url:
<div class="form-row">
<b>Development repository:</b>
<a href="${repository.remote_repository_url | h}" target="_blank">${repository.remote_repository_url | h}</a>
</div>
%endif
<div class="form-row">
<b>${sharable_link_label}</b>
<a href="${ repository.share_url }" target="_blank">${ repository.share_url }</a>