~/selfhut

selfhut/templates/repository/log.html.hbs -rw-r--r-- 1.49 kB
76d4fa6d — Arthur Melton log This is kinda a test but this adds the log tab and others 2 years ago
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{{#*inline "page"}}
{{> navbar}}
<div class="container">
	<div class="row" style="margin-bottom: 1rem">
		<div class="col-md-12">
			<div class="event-list">
				{{#each commits}}	
				<div class="event">
                <div>
                <a href="/{{../repo}}/commit/{{this.commit_hash}}" title="{{this.commit_hash}}">{{this.commit_hash_short}}</a> — {{this.commitie}}  
                <small class="pull-right">
                <a href="/{{../repo}}/log?from={{this.commit_hash}}#log-{{this.commit_hash}}" id="log-{{this.commit_hash}}"><span title="{{this.time_utc}}">{{this.time_relitive}}</span></a>
                </small>
                </div>
                {{#if (eq this.commit_body "")}}
                <pre class="commit">{{this.commit}}</pre>
                {{else}}
                <pre class="commit">{{this.commit}}

{{this.commit_body}}</pre>
                {{/if}}
                </div>
                {{/each}}
			</div>
            {{#if last_commit}}
                <a class="pull-right btn btn-primary" href="/{{repo}}/log/{{branch}}{{current_dir}}?from={{last_commit}}">Next <span aria-hidden="true" class="icon icon-caret-right"><svg viewBox="0 0 192 512" xmlns="http://www.w3.org/2000/svg"><path d="M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z"></path></svg></span></a>
		    {{/if}}
        </div>
	</div>
</div>
{{/inline}}
{{> layout}}