mirror of
https://github.com/documize/community.git
synced 2025-08-08 06:55:28 +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 = [];
|
let states = [];
|
||||||
states[0] = {
|
states[0] = {
|
||||||
id: "open",
|
id: "open",
|
||||||
name: "Show Open Issues"
|
name: "Open Issues"
|
||||||
};
|
};
|
||||||
states[1] = {
|
states[1] = {
|
||||||
id: "closed",
|
id: "closed",
|
||||||
name: "Show Closed Issues"
|
name: "Closed Issues"
|
||||||
};
|
};
|
||||||
states[2] = {
|
states[2] = {
|
||||||
id: "all",
|
id: "all",
|
||||||
name: "Show All Issues"
|
name: "All Issues"
|
||||||
};
|
};
|
||||||
|
|
||||||
this.set("states", states);
|
this.set("states", states);
|
||||||
|
|
|
@ -72,19 +72,19 @@ var renderTemplates = map[string]string{
|
||||||
<div class="section-github-render">
|
<div class="section-github-render">
|
||||||
<p>
|
<p>
|
||||||
{{if .ShowIssueNumbers}}
|
{{if .ShowIssueNumbers}}
|
||||||
Show Selected Issues
|
Showing Selected Issues
|
||||||
{{else}}
|
{{else}}
|
||||||
{{ .Config.IssueState.Name }}
|
{{ .Config.IssueState.Name }}
|
||||||
{{end}}
|
{{end}}
|
||||||
for repository <a href="{{ .Repo.URL }}/issues">{{.Repo.Name}}</a>
|
for repository <a href="{{ .Repo.URL }}/issues">{{.Repo.Name}}</a>
|
||||||
{{if .ShowList}}
|
{{if .ShowList}}
|
||||||
with label(s)
|
labelled
|
||||||
{{range $label := .List}}
|
{{range $label := .List}}
|
||||||
{{if $label.Included}}
|
{{if $label.Included}}
|
||||||
<span class="github-issue-label" style="background-color:#{{$label.Color}}">{{$label.Name}}</span>
|
<span class="github-issue-label" style="background-color:#{{$label.Color}}">{{$label.Name}}</span>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
{{end}};
|
{{end}}
|
||||||
{{if .ShowIssueNumbers}}
|
{{if .ShowIssueNumbers}}
|
||||||
issue(s) {{ .DateMessage }}.
|
issue(s) {{ .DateMessage }}.
|
||||||
{{else}}
|
{{else}}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue