Check-in [aa22c0d268]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Updated link to public repositories
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:aa22c0d268de531a69f1aa6f12c510ac3a8cac8f
User & Date: rkeene 2013-08-24 04:20:22
Context
2013-08-24
04:24
More work on useful links check-in: 3f13a85a1c user: rkeene tags: trunk
04:20
Updated link to public repositories check-in: aa22c0d268 user: rkeene tags: trunk
2013-08-23
18:03
Added support for creating a default configuration on newly created fossil repositories check-in: 54aba9dfc2 user: rkeene tags: trunk
Changes

Changes to public/global/presentation/wrapper.tpl.

35
36
37
38
39
40
41






42
43
44
45
46
47
48
                </ul>
                <? if (strpos($_SERVER['REQUEST_URI'], '/secure/repository/create') !== false): ?>
                <ul id="sub-navigation">
                    <li><a href="/secure/repository/create/type/new/">New Repository</a></li>
                    <li><a href="/secure/repository/create/type/clone/">Clone Repository</a></li>
                    <li class="last"><a href="/secure/repository/create/type/upload/">Upload Repository</a></li>
                </ul>






                <? endif; ?>
            </div>
            <div class="clear"></div>
        </div>
    </div>
    <div class="wrap">
        <? if ($_SERVER['REQUEST_URI'] == '/'): ?>







>
>
>
>
>
>







35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
                </ul>
                <? if (strpos($_SERVER['REQUEST_URI'], '/secure/repository/create') !== false): ?>
                <ul id="sub-navigation">
                    <li><a href="/secure/repository/create/type/new/">New Repository</a></li>
                    <li><a href="/secure/repository/create/type/clone/">Clone Repository</a></li>
                    <li class="last"><a href="/secure/repository/create/type/upload/">Upload Repository</a></li>
                </ul>
                <? endif; ?>
                <? if (preg_match('/\/secure\/$/', $_SERVER['REQUEST_URI']) == 1): ?>
                <ul id="sub-navigation">
                    <li><a href="/repositories/">All Public Repositories</a></li>
                    <li class="last"><a href="/user/<? echo Nano_Session::user()['username'] ?>/">My Public Repositories</a></li>
                </ul>
                <? endif; ?>
            </div>
            <div class="clear"></div>
        </div>
    </div>
    <div class="wrap">
        <? if ($_SERVER['REQUEST_URI'] == '/'): ?>

Changes to public/secure/presentation/index.tpl.

2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<p class="success">Your account was created and you are now logged in.</p>
<? endif ?>

<? if (isset($this->pull)): ?>
<p class="success"><?= $this->pull ?> was successfully updated.</p>
<? endif ?>

<h3><a href="/user/<?= $this->user['username'] ?>/">Public Repositories</a></h3>
<? if (count($this->public)): ?>
    <ul>
    <? foreach ($this->public as $repo): ?>
        <li><a href="/user/<?= $this->user['username'] ?>/repository/<?= $repo['name'] ?>"><?= $repo['name'] ?></a> - <? if ($repo['cloned']): ?><a href="/secure/repository/pull/id/<?= $repo['id'] ?>">Pull</a> | <? endif ?><a href="/secure/repository/edit/id/<?= $repo['id'] ?>">Edit</a> | <a href="/secure/repository/remove/id/<?= $repo['id'] ?>" class="remove">Remove</a></li>
    <? endforeach ?>
    </ul>
<? else: ?>







|







2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<p class="success">Your account was created and you are now logged in.</p>
<? endif ?>

<? if (isset($this->pull)): ?>
<p class="success"><?= $this->pull ?> was successfully updated.</p>
<? endif ?>

<h3>Public Repositories</h3>
<? if (count($this->public)): ?>
    <ul>
    <? foreach ($this->public as $repo): ?>
        <li><a href="/user/<?= $this->user['username'] ?>/repository/<?= $repo['name'] ?>"><?= $repo['name'] ?></a> - <? if ($repo['cloned']): ?><a href="/secure/repository/pull/id/<?= $repo['id'] ?>">Pull</a> | <? endif ?><a href="/secure/repository/edit/id/<?= $repo['id'] ?>">Edit</a> | <a href="/secure/repository/remove/id/<?= $repo['id'] ?>" class="remove">Remove</a></li>
    <? endforeach ?>
    </ul>
<? else: ?>