3 <div class='browselocation'>Location:
5 / <a href='{baseURL}/Browse.php/{p.location}'>{p.name}</a>
8 <form flexy:if="bdata.jumps">
9 <select id='jump' name='jump'></select>
10 <button type='submit'>Choose</button>
14 <span flexy:if="repo">
15 <div class='repodesc'>{repo.descriptionToHtml():h}</div>
16 <div flexy:if="repo.getCheckoutCommand()" class='checkout'>
17 Use the following command to obtain a working copy:<br>
18 <pre>$ {repo.getCheckoutCommand()}</pre>
23 <button flexy:if="canFork" id='forkbmyrepotn' type='button'>Fork</button>
24 <button flexy:if="canDeleteFork" id='deletebtn' type='button'>Delete</button>
25 <a flexy:if="canEditRepo" class='button' href="{baseURL}/admin/repo.php/{repo.repoid}">Edit</a>
28 <a href="{baseURL}/log.php/{repo.getBrowseRootName()}/{pi}">Show History</a>
32 <button flexy:if="!repo" id='newrepobtn' type='button'>New Repository</button>
39 <table flexy:if="!repo" class='listing' id='dirlist'>
43 <th class='name' width='1%'>Name</th>
44 <th class='desc'>Description</th>
49 <!-- this does not make sense... up would never happen without a repo.. unless we handle multiple forks?? -->
50 <tr flexy:if="up" class="even">
51 <td class='name'><a class='parent' href='{baseURL}/Browse.php/{up}?jump={jump}'>.. [up]</a></td>
52 <td class='desc'></td>
54 <tr flexy:foreach="repos,rep">
55 <td class='name'><a class='dir' href='{baseURL}/Browse.php/{rep.displayName()}?jump={jump}'>{rep.displayName()}</a></td>
56 <td class='desc'>{rep.descriptionToHtml():h}</td>
61 <table flexy:if="repo" class='listing' id='dirlist'>
65 <th class='name' width='1%'>Name</th>
66 <th class='rev' width='1%'>Revision</th>
67 <th class='age' width='1%'>Age</th>
68 <th class='change'>Last Change</th>
73 <tr flexy:if="up" class="even">
74 <td class='name'><a class='parent' href='{baseURL}/Browse.php/{up}?jump={jump}'>.. [up]</a></td>
77 <td class='change'></td>
78 <td class='desc'></td>
82 <!-- needs class. for alt col cols.... -->
83 <tr flexy:foreach="bdata.dirs,d">
84 <td class='name'><a class='dir' href='{baseURL}/Browse.php/{d.repo.displayName()}/{pi}/{d.basename}?jump={jump}'>{d.basename}</a></td>
85 <td class='rev'>{d.changeset():h}</td>
86 <td class='age'>{d.ctimeToHtml():h}</td>
87 <td class='change'>{d.changeByToHtml():h}: {d.changelogOneToHtml():h}</td>
90 <tr flexy:foreach="bdata.files,d">
91 <td class='name'><a class='file' href='{baseURL}/File.php/{d.repo.displayName()}/{pi}/{d.basename}?jump={jump}'>{d.basename}</a></td>
92 <td class='rev'>{d.changeset():h}</td>
93 <td class='age'>{d.ctimeToHtml():h}</td>
94 <td class='change'>{d.changeByToHtml():h}: {d.changelogOneToHtml():h}</td>
116 <div id='forkdialog' style='display:none' title='Really create a fork?'>
117 <form id='forkform' action='{baseURL}/admin/forkrepo.php' method='post'>
118 <input type='hidden' name='source' value="{repo.repoid}">
120 A fork is your own copy of a repo that is stored and maintained
124 If all you want to do is obtain a working copy so that you can
125 collaborate on this repo, you should not create a fork.
128 You may want to fork if you want the server to keep your work backed up,
129 or to collaborate with others on work that you want to share
130 with this repo later on.
133 Choose a name for your fork:
134 <select name="repo:parent"></select>
135 <input type='text' name='name' value='{forkname}'>
141 <div id='deletedialog' style='display:none' title='Really delete this repo?'>
142 <form id='deleteform' action='{baseURL}/admin/deleterepo.php' method='post'>
143 <input type='hidden' name='repoid' value='$repo->repoid'>
144 <p>Are you sure you want to delete this repo?</p>
145 <p><b>You cannot undo this action; any data will be permanently deleted</b></p>
151 <div id='newdialog' style='display:none' title='Create a new repo?'>
152 <form id='newrepoform' action='{baseURL}/admin/repo.php/new' method='post'>
154 Choose a name for your repo:
155 <select name="repo:parent2"></select>
156 <input type='text' name='repo:name' value='myrepo'>
159 Choose a repository type: $repotypes
163 <em>You may use <a href='{baseURL}/help.php/WikiFormatting' target='_blank'>WikiFormatting</a></em><br>
164 <textarea name='repo:description' class='wiki shortwiki' rows='5' cols='78'></textarea>
171 <!-- move me to js file.. -->
173 <script type="text/javascript">
175 $(document).ready(function() {
178 $('#forkdialog').dialog({
186 $(this).dialog('close');
189 $('#forkform').submit();
193 $('#forkbtn').click(function () {
194 $('#forkdialog').dialog('open');
200 $('#deletedialog').dialog({
207 $(this).dialog('close');
209 'Delete': function() {
210 $('#deleteform').submit();
214 $('#deletebtn').click(function () {
215 $('#deletedialog').dialog('open');
220 $('#newdialog').dialog({
227 'Cancel': function() {
228 $(this).dialog('close');
230 'Create': function() {
231 $('#newrepoform').submit();
235 $('#newrepobtn').click(function () {
236 $('#newdialog').dialog('open');