package.jst.eco 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <div class="page-header-title">
  2. <h1><%- @T( 'Package' ) %> <small><%- @T('Management') %></small></h1>
  3. </div>
  4. <div class="page-content">
  5. <p>
  6. <%- @T('The installation of packages comes with security implications, because arbitrary code will be executed in the context of the Zammad application.') %>
  7. <br>
  8. <%- @T('Only packages from known, trusted and verfied sources should be installed.') %>
  9. </p>
  10. <p>
  11. <%- @T('After installing, updating or uninstalling packages the following commands need to be executed on the server:') %>
  12. <ul>
  13. <% for command in @commands: %>
  14. <li><code>zammad> <%- command %></code></li>
  15. <% end %>
  16. <li><code>root> systemctl restart zammad</code></li>
  17. </ul>
  18. </p>
  19. <!--
  20. <ul class="nav nav-tabs nav-stacked">
  21. <li class=""><a data-type="" ><%- @T('Installed') %></a></li>
  22. <li class=""><a data-type="" ><%- @T('Store') %></a></li>
  23. </ul>
  24. -->
  25. <p>
  26. <form action="<%= App.Config.get('api_path') %>/packages" method="post" enctype="multipart/form-data" class="horizontal center">
  27. <input type="hidden" name="authenticity_token" value="<%= App.Ajax.token() %>"/>
  28. <input type="file" name="file_upload"/>
  29. <button class="align-right btn btn--primary" type="submit"><%- @T('Install Package') %></button>
  30. </form>
  31. </p>
  32. <table class="table table-striped table-hover">
  33. <thead>
  34. <tr>
  35. <th><%- @T('Name') %></th>
  36. <th><%- @T('Version') %></th>
  37. <th><%- @T('Vendor') %></th>
  38. <th><%- @T('State') %></th>
  39. <th><%- @T('Action') %></th>
  40. </tr>
  41. </thead>
  42. <tbody>
  43. <% for item in @packages: %>
  44. <tr data-id="<%= item.id %>">
  45. <td><%= item.name %></td>
  46. <td><%= item.version %></td>
  47. <td><a href="<%- item.url %>" target="_blank"><%= item.vendor %></a></td>
  48. <td><%- @T(item.state) %></td>
  49. <td><% for action in item.action: %><a href="#" class="action" data-type="<%= action %>"><%- @T(action) %></a><br/><% end %></td>
  50. </tr>
  51. <% end %>
  52. </tbody>
  53. </table>
  54. </div>