mirror of
https://github.com/documize/community.git
synced 2025-07-21 22:29:41 +02:00
Removed debug and cleaned up commits table
This commit is contained in:
parent
8d3033cc11
commit
26a548598b
3 changed files with 7 additions and 7 deletions
|
@ -81,13 +81,13 @@ const commitsTemplate = `
|
||||||
<tr>
|
<tr>
|
||||||
<td style="no-width">
|
<td style="no-width">
|
||||||
<a href="{{$commit.URL}}">{{$commit.Message}}</a>
|
<a href="{{$commit.URL}}">{{$commit.Message}}</a>
|
||||||
|
<span class="dataid"> {{$commit.Branch}}</span>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right;">
|
<td style="text-align:right;">
|
||||||
<div class="contributor-meta">
|
<div class="contributor-meta">
|
||||||
<img class="github-avatar" alt="@{{$commit.Name}}" src="{{$commit.Avatar}}" />
|
<img class="github-avatar" alt="@{{$commit.Name}}" src="{{$commit.Avatar}}" />
|
||||||
{{$commit.Name}}
|
{{$commit.Name}}
|
||||||
{{if $commit.ShowDate}} · {{$commit.Date}} {{end}}
|
· {{$commit.Date}}
|
||||||
{{if $commit.ShowBranch}} · {{$commit.Repo}}:<span class="bold">{{$commit.Branch}}</span>{{end}}
|
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -15,7 +15,7 @@ import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
//"fmt"
|
||||||
"html/template"
|
"html/template"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
@ -236,9 +236,9 @@ func (p *Provider) Render(ctx *provider.Context, config, data string) string {
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error("github render template.Parse error:", err)
|
log.Error("github render template.Parse error:", err)
|
||||||
for k, v := range strings.Split(rep.template, "\n") {
|
//for k, v := range strings.Split(rep.template, "\n") {
|
||||||
fmt.Println("DEBUG", k+1, v)
|
// fmt.Println("DEBUG", k+1, v)
|
||||||
}
|
//}
|
||||||
return "Documize internal github template.Parse error: " + err.Error()
|
return "Documize internal github template.Parse error: " + err.Error()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ const (
|
||||||
<table class="github-table" style="width: 100%;">
|
<table class="github-table" style="width: 100%;">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="title">Milestones <span> {{.ClosedMS}} {{if eq 1 .ClosedMS}} closed and {{.OpenMS}} {{if eq 1 .OpenMS}} open </span>
|
<th class="title">Milestones <span> {{.ClosedMS}} closed and {{.OpenMS}} open</span>
|
||||||
</th>
|
</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue