~/selfhut

070efc510a1a72ed4ed4eb60c0a37aeda68ea93b — Arthur Melton 00c0a257 2 years ago
format html
M templates/layout.html.hbs => templates/layout.html.hbs +1 -1
@@ 9,4 9,4 @@

	<body>
		{{~> page}}
	</body>
</html>
</html>
\ No newline at end of file

M templates/navbar.html.hbs => templates/navbar.html.hbs +72 -70
@@ 1,72 1,74 @@

<div class="header-tabbed" style="margin-top:56px">
  <div class="
{{#if (eq fluid "true")}}
  container-fluid
{{else}}
  container
{{/if}}
  ">
    <h2>
      <a href="/">~</a>/{{repo}}
    </h2>
    <ul class="nav nav-tabs">
      <li class="nav-item">
        <a class="nav-link 
        {{#if (eq active "summary")}}
        active
        {{/if}}
        " href="/{{repo}}">summary</a>
      </li>
      {{#if config.website}}
        <li class="nav-item">
          <a class="nav-link" href="{{config.website}}" target="_new">website&nbsp;
            <span aria-hidden="true" class="icon icon-external-link-alt">
              <svg viewBox="0 0 576 512" xmlns="http://www.w3.org/2000/svg">
                <path d="M576 24v127.984c0 21.461-25.96 31.98-40.971 16.971l-35.707-35.709-243.523 243.523c-9.373 9.373-24.568 9.373-33.941 0l-22.627-22.627c-9.373-9.373-9.373-24.569 0-33.941L442.756 76.676l-35.703-35.705C391.982 25.9 402.656 0 424.024 0H552c13.255 0 24 10.745 24 24zM407.029 270.794l-16 16A23.999 23.999 0 0 0 384 303.765V448H64V128h264a24.003 24.003 0 0 0 16.97-7.029l16-16C376.089 89.851 365.381 64 344 64H48C21.49 64 0 85.49 0 112v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V287.764c0-21.382-25.852-32.09-40.971-16.97z"></path>
              </svg>
            </span>
          </a>
        </li>
      {{/if}}
      <li class="nav-item">
        <a class="nav-link
        {{#if (eq active "tree")}}
        active
        {{/if}}
        " href="/{{repo}}/tree">tree</a>
      </li>
      <li class="nav-item">
        <a class="nav-link
        {{#if (eq active "log")}}
        active
        {{/if}}
        " href="/{{repo}}/log">log</a>
      </li>
      <li class="nav-item">
        <a class="nav-link
        {{#if (eq active "refs")}}
        active
        {{/if}}
        " href="/{{repo}}/refs">refs</a>
      </li>
      <li class="nav-item">
        <a class="nav-link
        {{#if (eq active "mailing_list")}}
        active
        {{/if}}
        " href="/{{repo}}/lists">mailing lists</a>
      </li>
      {{#if payment}}
          <li class="nav-item">
            <a class="nav-link" href="{{payment}}" target="_new">
            <span aria-hidden="true" class="icon icon-donate">
                <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-heart icon-sponsor mr-1 color-fg-sponsors">
                    <path fill-rule="evenodd" d="M4.25 2.5c-1.336 0-2.75 1.164-2.75 3 0 2.15 1.58 4.144 3.365 5.682A20.565 20.565 0 008 13.393a20.561 20.561 0 003.135-2.211C12.92 9.644 14.5 7.65 14.5 5.5c0-1.836-1.414-3-2.75-3-1.373 0-2.609.986-3.029 2.456a.75.75 0 01-1.442 0C6.859 3.486 5.623 2.5 4.25 2.5zM8 14.25l-.345.666-.002-.001-.006-.003-.018-.01a7.643 7.643 0 01-.31-.17 22.075 22.075 0 01-3.434-2.414C2.045 10.731 0 8.35 0 5.5 0 2.836 2.086 1 4.25 1 5.797 1 7.153 1.802 8 3.02 8.847 1.802 10.203 1 11.75 1 13.914 1 16 2.836 16 5.5c0 2.85-2.045 5.231-3.885 6.818a22.08 22.08 0 01-3.744 2.584l-.018.01-.006.003h-.002L8 14.25zm0 0l.345.666a.752.752 0 01-.69 0L8 14.25z"></path>
                </svg>
            </span>
            donate</a>
          </li>
      {{/if}}
    </ul>
  </div>
	<div class="
	{{#if (eq fluid "true")}}
	container-fluid
	{{else}}
	container
	{{/if}}
	">
	<h2>
		<a href="/">~</a>/{{repo}}
	</h2>
	<ul class="nav nav-tabs">
		<li class="nav-item">
			<a class="nav-link 
			{{#if (eq active "summary")}}
			active
			{{/if}}
			" href="/{{repo}}">summary</a>
		</li>
		{{#if config.website}}
		<li class="nav-item">
			<a class="nav-link" href="{{config.website}}" target="_new">
				website&nbsp;
				<span aria-hidden="true" class="icon icon-external-link-alt">
					<svg viewBox="0 0 576 512" xmlns="http://www.w3.org/2000/svg">
						<path d="M576 24v127.984c0 21.461-25.96 31.98-40.971 16.971l-35.707-35.709-243.523 243.523c-9.373 9.373-24.568 9.373-33.941 0l-22.627-22.627c-9.373-9.373-9.373-24.569 0-33.941L442.756 76.676l-35.703-35.705C391.982 25.9 402.656 0 424.024 0H552c13.255 0 24 10.745 24 24zM407.029 270.794l-16 16A23.999 23.999 0 0 0 384 303.765V448H64V128h264a24.003 24.003 0 0 0 16.97-7.029l16-16C376.089 89.851 365.381 64 344 64H48C21.49 64 0 85.49 0 112v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V287.764c0-21.382-25.852-32.09-40.971-16.97z"></path>
					</svg>
				</span>
			</a>
		</li>
		{{/if}}
		<li class="nav-item">
			<a class="nav-link
			{{#if (eq active "tree")}}
			active
			{{/if}}
			" href="/{{repo}}/tree">tree</a>
		</li>
		<li class="nav-item">
			<a class="nav-link
			{{#if (eq active "log")}}
			active
			{{/if}}
			" href="/{{repo}}/log">log</a>
		</li>
		<li class="nav-item">
			<a class="nav-link
			{{#if (eq active "refs")}}
			active
			{{/if}}
			" href="/{{repo}}/refs">refs</a>
		</li>
		<li class="nav-item">
			<a class="nav-link
			{{#if (eq active "mailing_list")}}
			active
			{{/if}}
			" href="/{{repo}}/lists">mailing lists</a>
		</li>
		{{#if payment}}
		<li class="nav-item">
			<a class="nav-link" href="{{payment}}" target="_new">
				<span aria-hidden="true" class="icon icon-donate">
					<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-heart icon-sponsor mr-1 color-fg-sponsors">
						<path fill-rule="evenodd" d="M4.25 2.5c-1.336 0-2.75 1.164-2.75 3 0 2.15 1.58 4.144 3.365 5.682A20.565 20.565 0 008 13.393a20.561 20.561 0 003.135-2.211C12.92 9.644 14.5 7.65 14.5 5.5c0-1.836-1.414-3-2.75-3-1.373 0-2.609.986-3.029 2.456a.75.75 0 01-1.442 0C6.859 3.486 5.623 2.5 4.25 2.5zM8 14.25l-.345.666-.002-.001-.006-.003-.018-.01a7.643 7.643 0 01-.31-.17 22.075 22.075 0 01-3.434-2.414C2.045 10.731 0 8.35 0 5.5 0 2.836 2.086 1 4.25 1 5.797 1 7.153 1.802 8 3.02 8.847 1.802 10.203 1 11.75 1 13.914 1 16 2.836 16 5.5c0 2.85-2.045 5.231-3.885 6.818a22.08 22.08 0 01-3.744 2.584l-.018.01-.006.003h-.002L8 14.25zm0 0l.345.666a.752.752 0 01-.69 0L8 14.25z"></path>
					</svg>
				</span>
				donate
			</a>
		</li>
		{{/if}}
	</ul>
</div>
</div>
\ No newline at end of file

M templates/repository/file.html.hbs => templates/repository/file.html.hbs +42 -35
@@ 3,14 3,14 @@

<div class="header-extension" style="margin-bottom: 0;">
	<div class="container-fluid tree-header">
		<div class="breadcrumb">
      {{repo}}{{current_dir}}
			{{repo}}{{current_dir}}
			<span class="text-muted" style="margin-left: 1rem">
			<span title="{{files.0.properties_int}}">
            {{files.0.properties}}
			{{files.0.properties}}
			</span>
			<span title="{{files.0.size}}">
			{{files.0.size}}
			</span>
            <span title="{{files.0.size}}">
                {{files.0.size}}
            </span>
			</span>
			<div class="blob-nav" style="margin-left: 1rem">
				<ul class="nav nav-tabs">

@@ 29,42 29,49 @@

				</ul>
			</div>
		</div>
    {{#if commit}}
      <div class="commit-info">
        <a href="/{{repo}}/commit/{{branch}}">{{commit.commit_hash_short}}</a> —
        {{commit.commitie}}
        {{commit.commit}}
        <span class="text-muted">
        <span title="{{commit.time_utc}}">{{commit.time_relitive}}</span>
        </span>
      </div>
    {{/if}}
		{{#if commit}}
		<div class="commit-info">
			<a href="/{{repo}}/commit/{{branch}}">{{commit.commit_hash_short}}</a> —
			{{commit.commitie}}
			{{commit.commit}}
			<span class="text-muted">
			<span title="{{commit.time_utc}}">{{commit.time_relitive}}</span>
			</span>
		</div>
		{{/if}}
	</div>
</div>
<div class="container-fluid code-viewport">
    <div class="row" style="margin-right: 0;">
        <div class="col-md-12 code-view">
<pre class="lines">
	<div class="row" style="margin-right: 0;">
		<div class="col-md-12 code-view">
			<pre class="lines">
{{#each lines}}
<a href="#L{{this}}" id="L{{this}}">{{this}}</a>
{{/each}}
</pre>
            <div class="highlight">
            {{#if files.1}}
            {{{content}}}
            {{else}}
            <div style="padding: 1rem">
                <p> 
                    {{files.0.size}} Binary file not shown.
                </p>
                <p>
                        <a class="btn btn-primary" href="/{{repo}}/blob/{{branch}}{{current_dir}}" rel="nofollow">Download <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>
                </p>
            </div>
            {{/if}}
            </div>
        </div>
    </div>
			<div class="highlight">
				{{#if files.1}}
				{{{content}}}
				{{else}}
				<div style="padding: 1rem">
					<p> 
						{{files.0.size}} Binary file not shown.
					</p>
					<p>
						<a class="btn btn-primary" href="/{{repo}}/blob/{{branch}}{{current_dir}}" rel="nofollow">
							Download 
							<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>
					</p>
				</div>
				{{/if}}
			</div>
		</div>
	</div>
</div>
{{/inline}}
{{> layout}}
{{> layout}}
\ No newline at end of file

M templates/repository/log.html.hbs => templates/repository/log.html.hbs +31 -31
@@ 3,7 3,7 @@

<div class="header-extension">
	<div class="container tree-header">
		<div class="breadcrumb">
      {{repo}}{{current_dir}}
			{{repo}}{{current_dir}}
			<span class="text-muted" style="margin-left: 1rem">
			<span title="40000">
			d---------

@@ 20,44 20,44 @@

				</ul>
			</div>
		</div>
    {{#if commit}}
      <div class="commit-info">
        <a href="/{{repo}}/commit/{{branch}}">{{commit.commit_hash_short}}</a> —
        {{commit.commitie}}
        {{commit.commit}}
        <span class="text-muted">
        <span title="{{commit.time_utc}}">{{commit.time_relitive}}</span>
        </span>
      </div>
    {{/if}}
		{{#if commit}}
		<div class="commit-info">
			<a href="/{{repo}}/commit/{{branch}}">{{commit.commit_hash_short}}</a> —
			{{commit.commitie}}
			{{commit.commit}}
			<span class="text-muted">
			<span title="{{commit.time_utc}}">{{commit.time_relitive}}</span>
			</span>
		</div>
		{{/if}}
	</div>
</div>
<div class="container">
	<div class="row" style="margin-bottom: 1rem">
		<div class="col-md-12">
			<div class="tree-list">
			  {{#each files}}	
        <div class="mode">
            <span title="{{this.properties_int}}">
            {{this.properties}}
            </span>
          </div>
          <div class="name {{this.file_type}}">
            <a href="/{{../repo}}/tree/{{../branch}}{{../current_dir_file}}{{this.name}}">
            {{this.name}}
            </a>
          </div>
          <div class="commit"></div>
          <div class="date"></div>
          <div class="size">
            <span title="{{this.size}}">
            {{this.size}}
            </span>
          </div>
        {{/each}}
				{{#each files}}	
				<div class="mode">
					<span title="{{this.properties_int}}">
					{{this.properties}}
					</span>
				</div>
				<div class="name {{this.file_type}}">
					<a href="/{{../repo}}/tree/{{../branch}}{{../current_dir_file}}{{this.name}}">
					{{this.name}}
					</a>
				</div>
				<div class="commit"></div>
				<div class="date"></div>
				<div class="size">
					<span title="{{this.size}}">
					{{this.size}}
					</span>
				</div>
				{{/each}}
			</div>
		</div>
	</div>
</div>
{{/inline}}
{{> layout}}
{{> layout}}
\ No newline at end of file

M templates/repository/summary.html.hbs => templates/repository/summary.html.hbs +76 -76
@@ 2,84 2,84 @@

{{> navbar}}
{{#if config.description}}
<div class="header-extension">
  <div class="container">{{config.description}}</div>
	<div class="container">{{config.description}}</div>
</div>
{{/if}}
<div class="container">
  <div class="row" style="margin-bottom: 1rem">
    {{#if preview}}
    <div class="col-md-6">
      <div class="event-list" style="margin-bottom: 0.5rem"> 
        {{#each preview}} 
        <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>
          <pre class="commit">{{this.commit}}</pre>
        </div>
        {{/each}}
      </div>
    </div>
    {{/if}}
    <div class="col-md-6">
      <div class="row">
        <div class="col-md-4">
          <h3>refs</h3>
          <dl>
            <dt>{{main_branch}}</dt>
            <dd>
              <a href="/{{repo}}/tree">
                browse&nbsp;
                <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>
              <a href="/{{repo}}/log">
                log&nbsp;
                <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>
            </dd>
            {{#if tag}}
              <dt>ref</dt>
              <dd>
                <a href="/{{repo}}/refs/{{tag}}">
                  release notes&nbsp;
                  <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>
              </dd>
            {{/if}}
          </dl>
        </div>
        <div class="col-md-8">
          <h3>clone</h3>
          <dl>
            <dd><a href="https://{{domain}}/{{repo}}">https://{{domain}}/{{repo}}</a></dd>
          </dl>
        </div>
      </div>
    </div>
  </div>
   <div class="row" style="margin-bottom: 1m">
   </div>
    <div class="row" id="readme">
        <div class="col-md-10">
          {{{readme}}}
        </div>
    </div>
	<div class="row" style="margin-bottom: 1rem">
		{{#if preview}}
		<div class="col-md-6">
			<div class="event-list" style="margin-bottom: 0.5rem">
				{{#each preview}} 
				<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>
					<pre class="commit">{{this.commit}}</pre>
				</div>
				{{/each}}
			</div>
		</div>
		{{/if}}
		<div class="col-md-6">
			<div class="row">
				<div class="col-md-4">
					<h3>refs</h3>
					<dl>
						<dt>{{main_branch}}</dt>
						<dd>
							<a href="/{{repo}}/tree">
								browse&nbsp;
								<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>
							<a href="/{{repo}}/log">
								log&nbsp;
								<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>
						</dd>
						{{#if tag}}
						<dt>ref</dt>
						<dd>
							<a href="/{{repo}}/refs/{{tag}}">
								release notes&nbsp;
								<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>
						</dd>
						{{/if}}
					</dl>
				</div>
				<div class="col-md-8">
					<h3>clone</h3>
					<dl>
						<dd><a href="https://{{domain}}/{{repo}}">https://{{domain}}/{{repo}}</a></dd>
					</dl>
				</div>
			</div>
		</div>
	</div>
	<div class="row" style="margin-bottom: 1m">
	</div>
	<div class="row" id="readme">
		<div class="col-md-10">
			{{{readme}}}
		</div>
	</div>
</div>
{{/inline}}
{{> layout}}
{{> layout}}
\ No newline at end of file

M templates/repository/tree.html.hbs => templates/repository/tree.html.hbs +31 -31
@@ 3,7 3,7 @@

<div class="header-extension">
	<div class="container tree-header">
		<div class="breadcrumb">
      {{repo}}{{current_dir}}
			{{repo}}{{current_dir}}
			<span class="text-muted" style="margin-left: 1rem">
			<span title="40000">
			d---------

@@ 20,44 20,44 @@

				</ul>
			</div>
		</div>
    {{#if commit}}
      <div class="commit-info">
        <a href="/{{repo}}/commit/{{branch}}">{{commit.commit_hash_short}}</a> —
        {{commit.commitie}}
        {{commit.commit}}
        <span class="text-muted">
        <span title="{{commit.time_utc}}">{{commit.time_relitive}}</span>
        </span>
      </div>
    {{/if}}
		{{#if commit}}
		<div class="commit-info">
			<a href="/{{repo}}/commit/{{branch}}">{{commit.commit_hash_short}}</a> —
			{{commit.commitie}}
			{{commit.commit}}
			<span class="text-muted">
			<span title="{{commit.time_utc}}">{{commit.time_relitive}}</span>
			</span>
		</div>
		{{/if}}
	</div>
</div>
<div class="container">
	<div class="row" style="margin-bottom: 1rem">
		<div class="col-md-12">
			<div class="tree-list">
			  {{#each files}}	
        <div class="mode">
            <span title="{{this.properties_int}}">
            {{this.properties}}
            </span>
          </div>
          <div class="name {{this.file_type}}">
            <a href="/{{../repo}}/tree/{{../branch}}{{../current_dir_file}}{{this.name}}">
            {{this.name}}
            </a>
          </div>
          <div class="commit"></div>
          <div class="date"></div>
          <div class="size">
            <span title="{{this.size}}">
            {{this.size}}
            </span>
          </div>
        {{/each}}
				{{#each files}}	
				<div class="mode">
					<span title="{{this.properties_int}}">
					{{this.properties}}
					</span>
				</div>
				<div class="name {{this.file_type}}">
					<a href="/{{../repo}}/tree/{{../branch}}{{../current_dir_file}}{{this.name}}">
					{{this.name}}
					</a>
				</div>
				<div class="commit"></div>
				<div class="date"></div>
				<div class="size">
					<span title="{{this.size}}">
					{{this.size}}
					</span>
				</div>
				{{/each}}
			</div>
		</div>
	</div>
</div>
{{/inline}}
{{> layout}}
{{> layout}}
\ No newline at end of file