mirror of
https://github.com/documize/community.git
synced 2025-07-21 22:29:41 +02:00
More github design updates
This commit is contained in:
parent
6d5cc420d7
commit
cf6410cfe8
5 changed files with 90 additions and 45 deletions
|
@ -42,11 +42,19 @@
|
||||||
.section-github-render {
|
.section-github-render {
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
margin: 40px 0;
|
margin-bottom: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
margin: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.github-board {
|
||||||
|
margin-top: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
table {
|
table {
|
||||||
margin: 0px!important;
|
margin-left: 0px!important;
|
||||||
}
|
}
|
||||||
|
|
||||||
thead.github th {
|
thead.github th {
|
||||||
|
@ -63,6 +71,18 @@
|
||||||
padding: 15px 30px !important;
|
padding: 15px 30px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
span.label-private {
|
||||||
|
font-weight: normal;
|
||||||
|
color: #4c4a42;
|
||||||
|
background-color: #ffefc6;
|
||||||
|
padding: 3px 4px;
|
||||||
|
font-size: 12px;
|
||||||
|
border-radius: 2px;
|
||||||
|
box-shadow: inset 0 -1px 0 rgba(0,0,0,0.12);
|
||||||
|
line-height: 1;
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
table.milestone-table {
|
table.milestone-table {
|
||||||
td a.link {
|
td a.link {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
|
@ -73,6 +93,18 @@
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
td span.date-meta {
|
||||||
|
margin-right: 10px;
|
||||||
|
font-size: 14px;
|
||||||
|
color: #767676;
|
||||||
|
|
||||||
|
img {
|
||||||
|
height: 14px;
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
progress[value] {
|
progress[value] {
|
||||||
background-color: #eeeeee;
|
background-color: #eeeeee;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
|
@ -81,6 +113,10 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
table.contributor-table {
|
||||||
|
margin-top: 30px !important;
|
||||||
|
}
|
||||||
|
|
||||||
.github-avatar {
|
.github-avatar {
|
||||||
float: left;
|
float: left;
|
||||||
margin-right: 20px;
|
margin-right: 20px;
|
||||||
|
@ -108,7 +144,7 @@
|
||||||
|
|
||||||
td span.milestone {
|
td span.milestone {
|
||||||
color: #3c3c3c;
|
color: #3c3c3c;
|
||||||
font-size: 18px;
|
font-size: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
li.github-commit-item {
|
li.github-commit-item {
|
||||||
|
|
|
@ -16,7 +16,7 @@ const commitsTemplate = `
|
||||||
|
|
||||||
{{if .HasAuthorStats}}
|
{{if .HasAuthorStats}}
|
||||||
|
|
||||||
<h3>Contributor activity since {{.Config.Since}}{{.Config.DateMessage}}</h3>
|
<h3>Contributor activity</h3>
|
||||||
<table class="contributor-table" style="width: 100%;">
|
<table class="contributor-table" style="width: 100%;">
|
||||||
<thead class="github">
|
<thead class="github">
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -50,24 +50,21 @@ const commitsTemplate = `
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{if .HasCommits}}
|
{{if .HasCommits}}
|
||||||
<h3>Commits activity since {{.Config.Since}}{{.Config.DateMessage}}</h3>
|
<h3>Commits activity</h3>
|
||||||
|
|
||||||
<table class="contributor-table" style="width: 100%;">
|
<table class="contributor-table" style="width: 100%;">
|
||||||
<thead class="github">
|
<thead class="github">
|
||||||
<tr>
|
<tr>
|
||||||
<th class="title">Repository:Branch</th>
|
|
||||||
<th class="title">Date</th>
|
|
||||||
<th class="title">Contributor</th>
|
<th class="title">Contributor</th>
|
||||||
<th class="title">Commits</th>
|
<th class="title">Commits / Date</th>
|
||||||
|
<th class="title">Repository:Branch</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
<tbody class="github">
|
<tbody class="github">
|
||||||
{{range $commit := .BranchCommits}}
|
{{range $commit := .BranchCommits}}
|
||||||
<tr>
|
<tr>
|
||||||
<td style="width: 20%;">{{if $commit.ShowBranch}}{{$commit.Repo}}:{{$commit.Branch}}{{end}}</td>
|
<td style="width: 20%;">
|
||||||
<td style="width: 15%;">{{if $commit.ShowDate}}{{$commit.Date}}{{end}}</td>
|
|
||||||
<td style="width: 15%;">
|
|
||||||
{{if $commit.ShowUser}}
|
{{if $commit.ShowUser}}
|
||||||
<div class="github-avatar">
|
<div class="github-avatar">
|
||||||
<img alt="@{{$commit.Name}}" src="{{$commit.Avatar}}" height="36" width="36">
|
<img alt="@{{$commit.Name}}" src="{{$commit.Avatar}}" height="36" width="36">
|
||||||
|
@ -75,7 +72,11 @@ const commitsTemplate = `
|
||||||
{{$commit.Name}}
|
{{$commit.Name}}
|
||||||
{{end}}
|
{{end}}
|
||||||
</td>
|
</td>
|
||||||
<td style="width: 50%;"><a class="link" href="{{$commit.URL}}">{{$commit.Message}}</td>
|
<td style="width: 40%;">
|
||||||
|
<a class="link" href="{{$commit.URL}}">{{$commit.Message}}</a><br>
|
||||||
|
<span class="date-meta">{{if $commit.ShowDate}}{{$commit.Date}}{{end}}</span>
|
||||||
|
</td>
|
||||||
|
<td style="width: 30%;">{{if $commit.ShowBranch}}{{$commit.Repo}}:{{$commit.Branch}}{{end}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{{end}}
|
{{end}}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
|
@ -25,7 +25,8 @@ const (
|
||||||
issuesTemplate = `
|
issuesTemplate = `
|
||||||
<div class="section-github-render">
|
<div class="section-github-render">
|
||||||
{{if .HasIssues}}
|
{{if .HasIssues}}
|
||||||
<h3>Issues: {{.ClosedIssues}} closed, {{.OpenIssues}} open</h3>
|
<h3>Issues</h3>
|
||||||
|
<p>There are {{.ClosedIssues}} closed and {{.OpenIssues}} open</p>
|
||||||
<p>
|
<p>
|
||||||
{{if .ShowList}}
|
{{if .ShowList}}
|
||||||
Including issues labelled
|
Including issues labelled
|
||||||
|
@ -43,35 +44,36 @@ const (
|
||||||
<table class="issue-table" style="width: 100%;">
|
<table class="issue-table" style="width: 100%;">
|
||||||
<thead class="github">
|
<thead class="github">
|
||||||
<tr>
|
<tr>
|
||||||
<th class="title">Repository</th>
|
<th class="title">Repository / Milestone</th>
|
||||||
<th class="title">Milestone</th>
|
<th class="title">Issues</th>
|
||||||
<th class="title">Issues</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
<tbody class="github">
|
<tbody class="github">
|
||||||
{{range $data := .Issues}}
|
{{range $data := .Issues}}
|
||||||
<tr>
|
<tr>
|
||||||
<td style="width: 20%;"><span><a class="link" href="{{$data.URL}}">{{$data.Repo}}</a></span> {{if $data.Private}}(Private){{end}}</td>
|
<td style="width: 30%;">
|
||||||
<td style="width: 20%;"><span class="milestone">{{$data.Milestone}}</span></td>
|
<span><a class="link" href="{{$data.URL}}">{{$data.Repo}}</a></span>{{if $data.Private}}<span class="label-private">Private</span>{{end}}</br>
|
||||||
<td style="width: 60%;">
|
<span class="milestone">{{$data.Milestone}}</span>
|
||||||
<li class="github-commit-item">
|
</td>
|
||||||
<a class="link" href="{{$data.URL}}">
|
<td style="width: 70%;">
|
||||||
<div class="issue-avatar">
|
<li class="github-commit-item">
|
||||||
{{if $data.IsOpen}}
|
<a class="link" href="{{$data.URL}}">
|
||||||
` + openIsvg + `
|
<div class="issue-avatar">
|
||||||
{{else}}
|
{{if $data.IsOpen}}
|
||||||
` + closedIsvg + `
|
` + openIsvg + `
|
||||||
{{end}}
|
{{else}}
|
||||||
</div>
|
` + closedIsvg + `
|
||||||
<div class="github-commit-body">
|
{{end}}
|
||||||
<div class="github-commit-title"><span class="label-name">{{$data.Message}}</span> {{$data.Labels}}</div>
|
|
||||||
<div class="github-commit-meta">
|
|
||||||
#{{$data.ID}} opened on {{$data.Date}} by {{$data.Name}}, last updated {{$data.Updated}}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="github-commit-body">
|
||||||
</a>
|
<div class="github-commit-title"><span class="label-name">{{$data.Message}}</span> {{$data.Labels}}</div>
|
||||||
</li>
|
<div class="github-commit-meta">
|
||||||
|
#{{$data.ID}} opened on {{$data.Date}} by {{$data.Name}}, last updated {{$data.Updated}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
|
@ -31,14 +31,15 @@ const (
|
||||||
<div class="section-github-render">
|
<div class="section-github-render">
|
||||||
|
|
||||||
{{if .HasMilestones}}
|
{{if .HasMilestones}}
|
||||||
<h3>Milestones: {{.ClosedMS}} closed, {{.OpenMS}} open</h3>
|
<h3>Milestones</h3>
|
||||||
|
<p>There are {{.ClosedMS}} closed and {{.OpenMS}} open</p>
|
||||||
<div class="github-board">
|
<div class="github-board">
|
||||||
<table class="milestone-table" style="width: 100%;">
|
<table class="milestone-table" style="width: 100%;">
|
||||||
<thead class="github">
|
<thead class="github">
|
||||||
<tr>
|
<tr>
|
||||||
<th class="title">Repository</th>
|
<th class="title">Repository</th>
|
||||||
<th class="title">Milestone</th>
|
<th class="title">Milestone</th>
|
||||||
<th class="title">Issue Progress</th>
|
<th class="title">Progress</th>
|
||||||
<th class="title"></th>
|
<th class="title"></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
@ -46,13 +47,18 @@ const (
|
||||||
<tbody class="github">
|
<tbody class="github">
|
||||||
{{range $data := .Milestones}}
|
{{range $data := .Milestones}}
|
||||||
<tr>
|
<tr>
|
||||||
<td style="width: 15%;"><span><a class="link" href="{{$data.URL}}">{{$data.Repo}}</a></span> {{if $data.Private}}(Private){{end}}</td>
|
<td style="width: 30%;">
|
||||||
<td style="width: 30%;"><span class="milestone">{{$data.Name}}</span><br>
|
<span><a class="link" href="{{$data.URL}}">{{$data.Repo}}</a></span>
|
||||||
|
{{if $data.Private}}<span class="label-private">Private</span>{{end}}
|
||||||
|
</td>
|
||||||
|
<td style="width: 35%;">
|
||||||
|
<span class="milestone">{{$data.Name}}</span><br>
|
||||||
{{if $data.IsMilestone}}
|
{{if $data.IsMilestone}}
|
||||||
{{$data.DueDate}} <span><img src="assets/img/github/icon-last-updated.png" alt="Last Updated">Last updated {{$data.UpdatedAt}}</span>
|
<span class="date-meta">{{$data.DueDate}}</span>
|
||||||
|
<span class="date-meta"><img src="assets/img/github/icon-last-updated.png" alt="Last Updated">Last updated {{$data.UpdatedAt}}</span>
|
||||||
{{end}}
|
{{end}}
|
||||||
</td>
|
</td>
|
||||||
<td style="width: 45%;">
|
<td style="width: 30%;">
|
||||||
{{if $data.IsMilestone}}
|
{{if $data.IsMilestone}}
|
||||||
<progress value="{{$data.Progress}}" max="100"></progress> <br>
|
<progress value="{{$data.Progress}}" max="100"></progress> <br>
|
||||||
{{$data.CompleteMsg}} complete {{$data.OpenIssues}} open {{$data.ClosedIssues}} closed
|
{{$data.CompleteMsg}} complete {{$data.OpenIssues}} open {{$data.ClosedIssues}} closed
|
||||||
|
@ -60,7 +66,7 @@ const (
|
||||||
{{$data.OpenIssues}} open {{$data.ClosedIssues}} closed
|
{{$data.OpenIssues}} open {{$data.ClosedIssues}} closed
|
||||||
{{end}}
|
{{end}}
|
||||||
</td>
|
</td>
|
||||||
<td style="width: 10%;">
|
<td style="width: 5%;">
|
||||||
{{if $data.IsOpen}}
|
{{if $data.IsOpen}}
|
||||||
` + openMSsvg + `
|
` + openMSsvg + `
|
||||||
{{else}}
|
{{else}}
|
||||||
|
|
|
@ -14,7 +14,7 @@ package github
|
||||||
const summaryTemplate = `
|
const summaryTemplate = `
|
||||||
<div class="section-github-render">
|
<div class="section-github-render">
|
||||||
|
|
||||||
<h3>
|
<h5>
|
||||||
Activity since {{.Config.Since}}{{.Config.DateMessage}} for {{.Config.Owner}} repositories:
|
Activity since {{.Config.Since}}{{.Config.DateMessage}} for {{.Config.Owner}} repositories:
|
||||||
{{range $data := .Config.Lists}}
|
{{range $data := .Config.Lists}}
|
||||||
{{if $data.Included}}
|
{{if $data.Included}}
|
||||||
|
@ -23,11 +23,11 @@ const summaryTemplate = `
|
||||||
</a>
|
</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
</h3>
|
</h5>
|
||||||
|
|
||||||
{{if .HasSharedLabels}}
|
{{if .HasSharedLabels}}
|
||||||
<h3>
|
<h3>
|
||||||
Common Labels: <br>
|
Common Labels <br>
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<table class="label-table" style="width: 100%;">
|
<table class="label-table" style="width: 100%;">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue