aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/templates/src
diff options
context:
space:
mode:
Diffstat (limited to 'ratatoeskr/templates/src')
-rw-r--r--ratatoeskr/templates/src/systemtemplates/plugininstall.html49
-rw-r--r--ratatoeskr/templates/src/systemtemplates/repos.html65
2 files changed, 114 insertions, 0 deletions
diff --git a/ratatoeskr/templates/src/systemtemplates/plugininstall.html b/ratatoeskr/templates/src/systemtemplates/plugininstall.html
index 039feef..2bee9d5 100644
--- a/ratatoeskr/templates/src/systemtemplates/plugininstall.html
+++ b/ratatoeskr/templates/src/systemtemplates/plugininstall.html
@@ -15,4 +15,53 @@
<form action="$rel_path_to_root/backend/plugin/install" method="POST" accept-charset="UTF-8" enctype="multipart/form-data">
<input type="file" name="pluginpackage" /> <input type="submit" name="installpackage" />
</form>
+
+ <h2><ste:get_translation for="install_from_repo" /></h2>
+ <ste:set var="repos_n"><ste:arraylen array="repos" /></ste:set>
+ <ste:if>
+ ~{$repos_n|gt|0}
+ <ste:then>
+ <form action="$rel_path_to_root/backend/plugin/install" method="POST" accept-charset="UTF-8">
+ <ste:get_translation for="search" />: <input type="text" name="searchfor" />
+ <ste:get_translation for="repo_plugin_search_in" />:
+ <select name="searchin">
+ <option value="*" selected="selected"><ste:get_translation for="search_in_all_repos" /></option>
+ <option value="*">-----------</option>
+ <ste:foreach array="repos" value="repo">
+ <option value="$repo[id]"><ste:escape>$repo[name]</ste:escape></option>
+ </ste:foreach>
+ </select>
+ <input type="submit" name="search_in_repos" />
+ </form>
+ </ste:then>
+ <ste:else>
+ <ste:l10n_replace URL="$rel_path_to_root/backend/admin/repos"><ste:get_translation for="no_repos_add_some" raw="y" /></ste:l10n_replace>
+ </ste:else>
+ </ste:if>
+
+ <ste:if>
+ $searchresults
+ <ste:then>
+ <table class="listtab fullwidth">
+ <thead>
+ <tr>
+ <th><ste:get_translation for="plugin_name" /></th>
+ <th><ste:get_translation for="plugin_description" /></th>
+ <th><ste:get_translation for="repo" /></th>
+ <th>&nbsp;</th>
+ </tr>
+ </thead>
+ <tbody>
+ <ste:foreach array="searchresults" value="searchresult">
+ <tr>
+ <td><ste:escape>$searchresult[name]</ste:escape></td>
+ <td><ste:escape>$searchresult[description]</ste:escape></td>
+ <td><ste:escape>$searchresult[reponame]</ste:escape></td>
+ <td><a href="$rel_path_to_root/backend/plugin/repoinstall?repo=$searchresult[repoid]&pkg=$searchresult[name]"><ste:get_translation for="install" /></a></td>
+ </tr>
+ </ste:foreach>
+ </tbody>
+ </table>
+ </ste:then>
+ </ste:if>
</ste:block>
diff --git a/ratatoeskr/templates/src/systemtemplates/repos.html b/ratatoeskr/templates/src/systemtemplates/repos.html
new file mode 100644
index 0000000..c7a5267
--- /dev/null
+++ b/ratatoeskr/templates/src/systemtemplates/repos.html
@@ -0,0 +1,65 @@
+<ste:load name="master.html" />
+<ste:block name="content">
+ <ste:if>$success
+ <ste:then>
+ <div class="success"><ste:escape>$success</ste:escape></div>
+ </ste:then>
+ </ste:if>
+ <ste:if>$error
+ <ste:then>
+ <div class="error"><ste:escape>$error</ste:escape></div>
+ </ste:then>
+ </ste:if>
+
+ <form action="$rel_path_to_root/backend/admin/repos" method="POST" accept-charset="UTF-8">
+ <h2><ste:get_translation for="add_repo" /></h2>
+
+ <p><strong><ste:get_translation for="repo_baseurl" />:</strong> <input type="text" name="repo_baseurl" /></p>
+ <p><input type="submit" name="add_repo" /></p>
+ </form>
+
+ <form action="$rel_path_to_root/backend/admin/repos" method="POST" accept-charset="UTF-8">
+ <h2><ste:get_translation for="repo_list" /></h2>
+
+ <table class="listtab fullwidth">
+ <thead>
+ <tr>
+ <th>&nbsp;</th>
+ <th><ste:get_translation for="repo_name" /></th>
+ <th><ste:get_translation for="repo_description" /></th>
+ <th><ste:get_translation for="repo_baseurl" /></th>
+ </tr>
+ </thead>
+ <tbody>
+ <ste:set var="repos_n"><ste:arraylen array="repos" /></ste:set>
+ <ste:if>
+ ~{$repos_n|gt|0}
+ <ste:then>
+ <ste:foreach array="repos" value="repo">
+ <tr>
+ <td><input type="checkbox" name="repos_multiselect[]" value="$repo[id]" /></td>
+ <td><ste:escape>$repo[name]</ste:escape></td>
+ <td><ste:escape>$repo[description]</ste:escape></td>
+ <td><ste:escape>$repo[baseurl]</ste:escape></td>
+ </tr>
+ </ste:foreach>
+ </ste:then>
+ <ste:else>
+ <tr>
+ <td colspan="4" style="font-style: italic; text-align: center;"><ste:get_translation for="no_repos" /></td>
+ </tr>
+ </ste:else>
+ </ste:if>
+ </tbody>
+ </table>
+ <div>
+ <input type="submit" name="delete_repos" value="<ste:get_translation for='delete' />" />
+ <select name="really_delete">
+ <option value="no" selected="selected"><ste:get_translation for="no" /></option>
+ <option value="yes"><ste:get_translation for="yes" /></option>
+ </select>
+ |
+ <input type="submit" name="force_repo_refresh" value="<ste:get_translation for='force_repo_refresh' />" />
+ </div>
+ </form>
+</ste:block>