mirror of
https://github.com/documize/community.git
synced 2025-08-07 22:45:24 +02:00
improved github rendered messaging
This commit is contained in:
parent
bb7530d56d
commit
94f82a79de
2 changed files with 6 additions and 6 deletions
|
@ -276,15 +276,15 @@ export default Ember.Component.extend(SectionMixin, NotifierMixin, TooltipMixin,
|
|||
let states = [];
|
||||
states[0] = {
|
||||
id: "open",
|
||||
name: "Show Open Issues"
|
||||
name: "Open Issues"
|
||||
};
|
||||
states[1] = {
|
||||
id: "closed",
|
||||
name: "Show Closed Issues"
|
||||
name: "Closed Issues"
|
||||
};
|
||||
states[2] = {
|
||||
id: "all",
|
||||
name: "Show All Issues"
|
||||
name: "All Issues"
|
||||
};
|
||||
|
||||
this.set("states", states);
|
||||
|
|
|
@ -72,19 +72,19 @@ var renderTemplates = map[string]string{
|
|||
<div class="section-github-render">
|
||||
<p>
|
||||
{{if .ShowIssueNumbers}}
|
||||
Show Selected Issues
|
||||
Showing Selected Issues
|
||||
{{else}}
|
||||
{{ .Config.IssueState.Name }}
|
||||
{{end}}
|
||||
for repository <a href="{{ .Repo.URL }}/issues">{{.Repo.Name}}</a>
|
||||
{{if .ShowList}}
|
||||
with label(s)
|
||||
labelled
|
||||
{{range $label := .List}}
|
||||
{{if $label.Included}}
|
||||
<span class="github-issue-label" style="background-color:#{{$label.Color}}">{{$label.Name}}</span>
|
||||
{{end}}
|
||||
{{end}}
|
||||
{{end}};
|
||||
{{end}}
|
||||
{{if .ShowIssueNumbers}}
|
||||
issue(s) {{ .DateMessage }}.
|
||||
{{else}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue