diff options
author | Fabio Comuni <fabrix.xm@gmail.com> | 2011-06-14 14:21:43 +0200 |
---|---|---|
committer | Fabio Comuni <fabrix.xm@gmail.com> | 2011-06-14 14:21:43 +0200 |
commit | 00e142e4f753005a8b4003585c6a88548f006315 (patch) | |
tree | 95ff3c0c6a7ad53be0d4e0042a93b8720f5c9941 /view | |
parent | 283160901fcb5670b48c7897ccce615872cb956e (diff) | |
download | volse-hubzilla-00e142e4f753005a8b4003585c6a88548f006315.tar.gz volse-hubzilla-00e142e4f753005a8b4003585c6a88548f006315.tar.bz2 volse-hubzilla-00e142e4f753005a8b4003585c6a88548f006315.zip |
Load plugin info from plugin file. Show README.md or README from plugin dir in plugin details page
Diffstat (limited to 'view')
-rw-r--r-- | view/admin_plugins.tpl | 7 | ||||
-rw-r--r-- | view/admin_plugins_details.tpl | 16 |
2 files changed, 17 insertions, 6 deletions
diff --git a/view/admin_plugins.tpl b/view/admin_plugins.tpl index d29665a06..ee0fa67e6 100644 --- a/view/admin_plugins.tpl +++ b/view/admin_plugins.tpl @@ -4,10 +4,9 @@ <ul id='pluginslist'> {{ for $plugins as $p }} <li class='plugin $p.1'> - <a class='toggle' href='$baseurl/admin/plugins/$p.0?a=t'><span class='icon $p.1'></span></a> - <a href='$baseurl/admin/plugins/$p.0'> - <span class='name'>$p.0</span> - </a> + <a class='toggleplugin' href='$baseurl/admin/plugins/$p.0?a=t'><span class='icon $p.1'></span></a> + <a href='$baseurl/admin/plugins/$p.0'><span class='name'>$p.2.name</span></a> - <span class="version">$p.2.version</span> + <div class='desc'>$p.2.description</div> </li> {{ endfor }} </ul> diff --git a/view/admin_plugins_details.tpl b/view/admin_plugins_details.tpl index 7e2e95521..acb3d2862 100644 --- a/view/admin_plugins_details.tpl +++ b/view/admin_plugins_details.tpl @@ -1,7 +1,19 @@ <div id='adminpage'> <h1>$title - $page</h1> - <p><span class='icon $status'></span> $plugin</p> + <p><span class='toggleplugin icon $status'></span> $info.name - $info.version : <a href="$baseurl/admin/plugins/$plugin/?a=t">$action</a></p> + <p>$info.description</p> + <p> + {{ for $info.author as $a }} + <a href="$a.link">$a.name</a> + {{ endfor }} + </p> - <p><a href="$baseurl/admin/plugins/$plugin/?a=t">$action</a></p> + + {{ if $readme }} + <h3>Readme</h3> + <div id="plugin_readme"> + $readme + </div> + {{ endif }} </div> |