~/selfhut

05b81ea3d6fe18c111b506dbb11c0d59989d44e4 — arthurmelton cbd6d8a5 2 years ago
now it is finally formated
2 files changed, 61 insertions(+), 61 deletions(-)

M templates/index.html.hbs
M templates/layout.html.hbs
M templates/index.html.hbs => templates/index.html.hbs +52 -52
@@ 1,57 1,57 @@

{{#*inline "page"}}
<div class="container" style="margin-top:56px">
   <div class="row">
      <div class="col-md-4">
         <h2>{{ user }}!</h2>
         {{{ description }}}
      </div>
      <div class="col-md-8">
         <form>
            <input class="form-control" dir="auto" name="search" placeholder="Search" type="text" value="{{ search }}">
         </form>
         <div class="event-list">
            {{#each repos}}
            <div class="event">
               <h4> 
                  <a href="/{{this.name}}">{{ this.name }}</a>
               </h4>
               <p>{{ this.description }}</p>
            </div>
            {{/each}}
         </div>
         {{#if (ne total_page 1)}}
         <div class="row">
            <div class="col-4">
               {{#if (ne page 1)}}
               <a class="btn btn-default" href="?page={{page_dec}}&search={{search}}">
                  <span aria-hidden="true" class="icon icon-caret-left">
                     <svg viewBox="0 0 192 512" xmlns="http://www.w3.org/2000/svg">
                        <path d="M192 127.338v257.324c0 17.818-21.543 26.741-34.142 14.142L29.196 270.142c-7.81-7.81-7.81-20.474 0-28.284l128.662-128.662c12.599-12.6 34.142-3.676 34.142 14.142z"></path>
                     </svg>
                  </span>
                  prev
               </a>
               {{/if}}
            </div>
            <div class="col-4 text-centered">
               {{page}} / {{ total_page }}
            </div>
            {{#if (ne page total_page)}}
            <div class="col-4 text-right">
               <a class="btn btn-default" href="?page={{page_inc}}&search={{search}}">
                  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>
            </div>
            {{/if}}
         </div>
         {{/if}}
      </div>
   </div>
	<div class="row">
		<div class="col-md-4">
			<h2>{{ user }}!</h2>
			{{{ description }}}
		</div>
		<div class="col-md-8">
			<form>
				<input class="form-control" dir="auto" name="search" placeholder="Search" type="text" value="{{ search }}">
			</form>
			<div class="event-list">
				{{#each repos}}
				<div class="event">
					<h4> 
						<a href="/{{this.name}}">{{ this.name }}</a>
					</h4>
					<p>{{ this.description }}</p>
				</div>
				{{/each}}
			</div>
			{{#if (ne total_page 1)}}
			<div class="row">
				<div class="col-4">
					{{#if (ne page 1)}}
					<a class="btn btn-default" href="?page={{page_dec}}&search={{search}}">
						<span aria-hidden="true" class="icon icon-caret-left">
							<svg viewBox="0 0 192 512" xmlns="http://www.w3.org/2000/svg">
								<path d="M192 127.338v257.324c0 17.818-21.543 26.741-34.142 14.142L29.196 270.142c-7.81-7.81-7.81-20.474 0-28.284l128.662-128.662c12.599-12.6 34.142-3.676 34.142 14.142z"></path>
							</svg>
						</span>
						prev
					</a>
					{{/if}}
				</div>
				<div class="col-4 text-centered">
					{{page}} / {{ total_page }}
				</div>
				{{#if (ne page total_page)}}
				<div class="col-4 text-right">
					<a class="btn btn-default" href="?page={{page_inc}}&search={{search}}">
						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>
				</div>
				{{/if}}
			</div>
			{{/if}}
		</div>
	</div>
</div>
{{/inline}}
{{> layout}}
\ No newline at end of file

M templates/layout.html.hbs => templates/layout.html.hbs +9 -9
@@ 1,12 1,12 @@

<!doctype html>
<html>
   <head>
      <meta charset="utf8">
      <meta content="width=device-width, initial-scale=1" name="viewport">
      <title>{{ title }} :: Arthur Melton Git</title>
      <link rel="stylesheet" href="/style.css">
   </head>
   <body>
      {{~> page}}
   </body>
	<head>
		<meta charset="utf8">
		<meta content="width=device-width, initial-scale=1" name="viewport">
		<title>{{ title }} :: Arthur Melton Git</title>
		<link rel="stylesheet" href="/style.css">
	</head>
	<body>
		{{~> page}}
	</body>
</html>
\ No newline at end of file