Cache whether a blob is binary
[gitphp.git] / templates / projectbase.tpl
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{*
 * Projectbase
 *
 * Base template for all pages for a single project
 *
 * @author Christopher Han <xiphux@gmail.com>
 * @copyright Copyright (c) 2011 Christopher Han
 * @packge GitPHP
 * @subpackage Template
 *}
{extends file='main.tpl'}

{block name=title}
{$pagetitle} :: {$project->GetProject()}{if $actionlocal}/{$actionlocal}{/if}
{/block}

{block name=feeds}
  <link rel="alternate" title="{$project->GetProject()|escape} log (Atom)" href="{geturl project=$project action=atom}" type="application/atom+xml" />
  <link rel="alternate" title="{$project->GetProject()|escape} log (RSS)" href="{geturl project=$project action=rss}" type="application/rss+xml" />
{/block}

{block name=links}
  {if $project->GetCloneUrl()}
  <link rel="vcs-git" href="{$project->GetCloneUrl()}" title="{$project->GetDescription()|escape}" />
  {/if}
{/block}

{block name=header}
  <a href="{geturl}">{if $homelink}{$homelink}{else}{t}projects{/t}{/if}</a> / 
  <a href="{geturl project=$project}">{$project->GetProject()}</a>
  {if $actionlocal}
     / {$actionlocal}
  {/if}
  {if $enablesearch}
    <form method="get" action="{geturl project=$project action=search hash=$commit}" enctype="application/x-www-form-urlencoded">
      <div class="search">
        {if !$router->GetCleanUrl()}
	<input type="hidden" name="p" value="{$project->GetProject()}" />
        <input type="hidden" name="a" value="search" />
        <input type ="hidden" name="h" value="{if $commit}{$commit->GetHash()}{else}HEAD{/if}" />
	{/if}
        <select name="st">
          <option {if $searchtype == 'commit'}selected="selected"{/if} value="commit">{t}commit{/t}</option>
          <option {if $searchtype == 'author'}selected="selected"{/if} value="author">{t}author{/t}</option>
          <option {if $searchtype == 'committer'}selected="selected"{/if} value="committer">{t}committer{/t}</option>
          {if $filesearch}
            <option {if $searchtype == 'file'}selected="selected"{/if} value="file">{t}file{/t}</option>
          {/if}
        </select> {t}search{/t}: <input type="search" name="s" {if $search}value="{$search}"{/if} />
      </div>
    </form>
  {/if}
{/block}

{block name=footer}
  <div class="page_footer_text">
  {if $project->GetWebsite()}
  <a href="{$project->GetWebsite()}">{$project->GetDescription()|escape}</a>
  {else}
  {$project->GetDescription()|escape}
  {/if}
  </div>
  <a href="{geturl project=$project action=rss}" class="rss_logo">{t}RSS{/t}</a>
  <a href="{geturl project=$project action=atom}" class="rss_logo">{t}Atom{/t}</a>
{/block}

comments