Move admin/addons/{addon} to src/Module
- Add Module\Admin\Addons\Details class - Add route for admin/addons/{addon} - Remove addons pages from mod/admin
This commit is contained in:
parent
9bbb438534
commit
87e51ddd67
4 changed files with 168 additions and 121 deletions
37
view/templates/admin/addons/details.tpl
Normal file
37
view/templates/admin/addons/details.tpl
Normal file
|
@ -0,0 +1,37 @@
|
|||
|
||||
<div id="adminpage">
|
||||
<h1>{{$title}} - {{$page}}</h1>
|
||||
|
||||
<p><span class="toggleaddon icon {{$status}}"></span> {{$info.name}} - {{$info.version}} : <a href="{{$baseurl}}/admin/{{$function}}/{{$addon}}/?action=toggle&t={{$form_security_token}}">{{$action}}</a></p>
|
||||
<p>{{$info.description nofilter}}</p>
|
||||
|
||||
<p class="author">{{$str_author}}
|
||||
{{foreach $info.author as $a name=authors}}
|
||||
{{if $a.link}}<a href="{{$a.link}}">{{$a.name}}</a>{{else}}{{$a.name}}{{/if}}{{if $smarty.foreach.authors.last}}{{else}}, {{/if}}
|
||||
{{/foreach}}
|
||||
</p>
|
||||
|
||||
<p class="maintainer">{{$str_maintainer}}
|
||||
{{foreach $info.maintainer as $a name=maintainers}}
|
||||
{{if $a.link}}<a href="{{$a.link}}">{{$a.name}}</a>{{else}}{{$a.name}}{{/if}}{{if $smarty.foreach.maintainers.last}}{{else}}, {{/if}}
|
||||
{{/foreach}}
|
||||
</p>
|
||||
|
||||
{{if $screenshot}}
|
||||
<a href="{{$screenshot.0}}" class="screenshot"><img src="{{$screenshot.0}}" alt="{{$screenshot.1}}" /></a>
|
||||
{{/if}}
|
||||
|
||||
{{if $admin_form}}
|
||||
<h3>{{$settings}}</h3>
|
||||
<form method="post" action="{{$baseurl}}/admin/{{$function}}/{{$addon}}">
|
||||
{{$admin_form nofilter}}
|
||||
</form>
|
||||
{{/if}}
|
||||
|
||||
{{if $readme}}
|
||||
<h3>Readme</h3>
|
||||
<div id="addon_readme">
|
||||
{{$readme nofilter}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue