github.com/jancarloviray/community@v0.41.1-0.20170124221257-33a66c87cf2f/core/section/github/summary_template.go (about)

     1  // Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
     2  //
     3  // This software (Documize Community Edition) is licensed under
     4  // GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html
     5  //
     6  // You can operate outside the AGPL restrictions by purchasing
     7  // Documize Enterprise Edition and obtaining a commercial license
     8  // by contacting <sales@documize.com>.
     9  //
    10  // https://documize.com
    11  
    12  package github
    13  
    14  const summaryTemplate = `
    15  <div class="section-github-render">
    16  	<p>Activity since {{.Config.Since}}{{.Config.DateMessage}} for {{.Config.Owner}} repository
    17  		{{range $data := .Config.Lists}}
    18  			{{if $data.Included}}
    19  				<a class="link" href="{{$data.URL}}">
    20  					{{$data.Repo}}{{if $data.Comma}},{{end}}
    21  				</a>
    22  			{{end}}
    23  		{{end}}
    24  	</p>
    25  
    26  	<!--
    27  	{{if .HasSharedLabels}}
    28  		<div class="heading">Labels</div>
    29  		<p>There
    30  		{{if eq 1 (len .SharedLabels)}} is {{else}} are {{end}}
    31  		{{len .SharedLabels}}
    32  		shared
    33  		{{if eq 1 (len .SharedLabels)}} label {{else}} labels {{end}}
    34  		across the repositories.</p>
    35  		<table class="github-table">
    36  		    <tbody>
    37  				{{range $slabel := .SharedLabels}}
    38  			        <tr>
    39  			            <td class="no-width"><span class="issue-label" style="background-color:#{{$slabel.Color}}">{{$slabel.Name}} ({{$slabel.Count}})</span></td>
    40  						<td>{{$slabel.Repos}}</td>
    41  			        </tr>
    42  				{{end}}
    43  		    </tbody>
    44  		</table>
    45  	{{end}}
    46  	-->
    47  </div>
    48  `