Commit 0199eb7e authored by Alexander Schwartz's avatar Alexander Schwartz Committed by Christopher Guindon
Browse files

improved handling for incubating projects: incubating logo on in the summary....


improved handling for incubating projects: incubating logo on in the summary. Link to website when there is no download URL.
Signed-off-by: Alexander Schwartz's avatarAlexander Schwartz <alexander.schwartz@gmx.net>
parent a0d85366
{{ define "main" }}
<ul class="nav nav-tabs" id="main-tabs" role="tablist">
<li role="presentation" class="active">
<a class="active"id="overview-tab" data-toggle="tab" href="#overview" role="tab" aria-controls="overview" aria-selected="true">Overview</a>
<a class="active" id="overview-tab" data-toggle="tab" href="#overview" role="tab" aria-controls="overview" aria-selected="true">Overview</a>
</li>
</ul>
<div class="tab-content">
......@@ -11,6 +11,9 @@
</div>
<h2><strong>{{ i18n "project-single-licenses-label" }}</strong></h2>
<p>{{ .Params.license }}</p>
<div class="btn-group">
<a href="{{ .Params.website }}" class="btn btn-sm btn-warning details-link">{{ i18n "project-summary-website-label" }}</a>
</div>
</div>
</div>
{{ end }}
......@@ -47,4 +50,4 @@
</div>
</div>
</main>
{{ end }}
\ No newline at end of file
{{ end }}
......@@ -2,7 +2,11 @@
<div about="{{ .Permalink | relURL }}">
<div class="col-xs-6 col-md-4">
<a href="{{ .Permalink | relURL }}" >
{{ if .Params.is_incubated }}
<img class="img-responsive center-block margin-bottom-30" src="https://projects.eclipse.org/sites/all/modules/custom/pmi/project_state/images/incubating.png" />
{{ else }}
<img class="img-responsive center-block" src="{{ .Params.logo }}" alt="{{ i18n "project-summary-logo-text" . }}" />
{{ end }}
</a>
</div>
......@@ -16,7 +20,7 @@
</ul>
{{ end }}
<div class="project-teaser-description">
{{ .Summary }}
{{ .Summary }}
<p><a href="{{ .Permalink | relURL }}">{{ i18n "project-summary-read-more" }}</a></p>
</div>
</div>
......@@ -27,6 +31,7 @@
{{ i18n "project-summary-latest-release" }} <a href="{{ .Params.download_url }}"><span class="badge version">{{ .Params.latest_version }}</span></a>
</p>
{{ end }}
{{ if ne .Params.download_url nil }}
<div class="btn-group">
<a href="{{ .Params.download_url }}" class="btn btn-sm btn-warning details-link">{{ i18n "project-summary-download-label" }}</a>
<button type="button" class="btn btn-sm btn-warning dropdown-toggle details-link" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
......@@ -36,6 +41,11 @@
<li><a href="{{ .Params.website }}">{{ i18n "project-summary-website-label" }}</a></li>
</ul>
</div>
{{ else }}
<div class="btn-group">
<a href="{{ .Params.website }}" class="btn btn-sm btn-warning details-link">{{ i18n "project-summary-website-label" }}</a>
</div>
{{ end }}
</div>
<!-- End release col -->
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment