github.com/wanliu/go-oauth2-server@v0.0.0-20180817021415-f928fa1580df/web/includes/clients.html (about)

     1  {{ define "title"}}客户端应用{{ end }}
     2  
     3  {{ define "content" }}
     4  
     5      <div class="profile-content">
     6      	{{ if len .clients | lt 0 }}
     7       	<div class="pull-right">
     8  	    	<a class="btn btn-default" href="/web/clients/new" role="button"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span></a>
     9       	</div>
    10       	<p class="lead">注册应用</p>
    11  		<ul class="list-group">
    12  		 	{{ range $client := .clients }}
    13  				<li class="list-group-item">
    14  					<a href="/web/clients/{{$client.Key}}">{{$client.Name.String }}
    15  					<p class="pull-right" >
    16  					<span class="hidden-xs text-muted">回调:{{$client.RedirectURI.String}}</span>
    17  					</p>
    18  					</a>
    19  				</li>
    20  		 	{{ end }}
    21  	    </ul>
    22  	    {{ else }}
    23  	    	<a class="btn btn-primary btn-lg" href="/web/clients/new" role="button">创建新应用</a>
    24  	    {{ end }}
    25      </div>
    26  {{ end }}