No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

130 líneas
4.1KB

  1. {% extends 'base.html' %}
  2. {% block content %}
  3. <div class="row">
  4. <div class="col">
  5. <h1 class="text-center">{% block title %} {{ tool['name'] }} {% endblock %}</h1>
  6. </div>
  7. </div>
  8. {% if current_user.is_authenticated %}
  9. <div class="row text-center py-3">
  10. <a href="{{ url_for('tool.edit_tool', tool_id=tool['id']) }}">
  11. <span class="badge bg-dark">Edit</span>
  12. </a>
  13. </div>
  14. {% endif %}
  15. <div class="row">
  16. <div class="col">
  17. <table class="table table-hover">
  18. <tbody>
  19. <tr>
  20. <th>
  21. Created:
  22. </th>
  23. <td>
  24. {{ tool['created'].strftime("%Y-%m-%d %H:%M") }} UTC
  25. </td>
  26. </tr>
  27. <tr>
  28. <th>
  29. Description:
  30. </th>
  31. <td>
  32. {{ tool['description'] }}
  33. </td>
  34. </tr>
  35. <tr>
  36. <th>
  37. Project page:
  38. </th>
  39. <td>
  40. {{ tool['projectUrl'] }}
  41. </td>
  42. </tr>
  43. <tr>
  44. <th>
  45. Code repository:
  46. </th>
  47. <td>
  48. {{ tool['repositoryUrl'] }}
  49. </td>
  50. </tr>
  51. <tr>
  52. <th>
  53. Expertise required to use:
  54. </th>
  55. <td>
  56. {{ tool['expertiseToUse'] }}
  57. </td>
  58. </tr>
  59. <tr>
  60. <th>
  61. Expertise required to self-host:
  62. </th>
  63. <td>
  64. {{ tool['expertiseToHost'] }}
  65. </td>
  66. </tr>
  67. <tr>
  68. <th>
  69. Technical dependencies:
  70. </th>
  71. <td>
  72. {{ tool['dependencies'] }}
  73. </td>
  74. </tr>
  75. <tr>
  76. <th>
  77. Import / ingest formats:
  78. </th>
  79. <td>
  80. {{ tool['ingestFormats'] }}
  81. </td>
  82. </tr>
  83. <tr>
  84. <th>
  85. Output formats:
  86. </th>
  87. <td>
  88. {{ tool['outputFormats'] }}
  89. </td>
  90. </tr>
  91. <tr>
  92. <th>
  93. Platform status:
  94. </th>
  95. <td>
  96. {{ tool['status'] }}
  97. </td>
  98. </tr>
  99. </tbody>
  100. </table>
  101. </div>
  102. </div>
  103. {% if resources %}
  104. <div class="row">
  105. <div class="col">
  106. <h2 class="text-center">Linked resources:</h2>
  107. </div>
  108. </div>
  109. <div class="row">
  110. {% for resource in resources %}
  111. <div class="col-md-4 col-sm-6 py-3">
  112. {% if resource['type'] == 'practice' %}
  113. <div class="card text-dark bg-warning mb-3">
  114. <div class="card-body">
  115. <a href="{{ url_for('practice.show_practice', practice_id=resource['id']) }}">
  116. <h3 class="card-title text-center text-dark">{{ resource['name'] }}</h3>
  117. </a>
  118. <p class="card-text">
  119. {{ resource['description']|truncate(100) }}
  120. </p>
  121. </div>
  122. </div>
  123. {% endif %}
  124. </div>
  125. {% endfor %}
  126. </div>
  127. {% endif %}
  128. {% endblock %}