Skip to content

Commit

Permalink
feat: list-artifact 支持展示 combineProviders
Browse files Browse the repository at this point in the history
  • Loading branch information
geekdada committed Oct 27, 2019
1 parent d8f45aa commit 1526c6b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/gateway/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export class Server {
pathname: '/gateway.js',
query: {
name,
action: 'get-artifact',
dl: '1',
},
})
Expand Down
5 changes: 5 additions & 0 deletions lib/gateway/template/artifact-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ export default `
<pre class="preview">{{ getPreviewUrl(artifact.name) }}</pre>
<div class="tag-list">
<div class="tag">Provider: {{ artifact.provider }}</div>
{% if artifact.combineProviders %}
{% for provider in artifact.combineProviders %}
<div class="tag">Provider: {{ provider }}</div>
{% endfor %}
{% endif %}
</div>
<div class="link-group">
<a rel="nofollow" class="link pure-button pure-button-primary" target="_blank" href="{{ getDownloadUrl(artifact.name) }}">下载</a>
Expand Down

0 comments on commit 1526c6b

Please sign in to comment.