1. Daniel Greenfeld
  2. transifex

Commits

Dimitris Glezos  committed d67bcea

Show warning for tarball caveats.

  • Participants
  • Parent commits 9dfec9a
  • Branches default

Comments (0)

Files changed (2)

File site_media/css/base.css

View file
  • Ignore whitespace
   padding-top: 0.3em;
 }
 
+/* Used usually for mouse-over warnings */
+
+span.warning, span.note { padding: 0 0.2em; }
+
+span.warning {
+  color: #844141;
+  background-color: #fff5f5;
+}
+
+span.note {
+  color: #685D40;
+  background-color: #FEFFDE;
+}
+
+
 /* Buttonized */
 
 .buttonized,

File templates/projects/component_detail.html

View file
  • Ignore whitespace
         {% if component.allows_submission %}<span class="i16 tick_circle"></span>
         {% else %}<span class="i16 stop"></span>
         {% endif %}
+        {# FIXME: tar too restrictive #}
+        {% ifequal component.unit.type "tar" %}<sup><span class="note" title="{% trans "Tarball support is read-only: Submissions will not pushed to the maintainer or the upstream repo." %}">{% trans "note" %}</span></sup>{% endifequal %}
       </td>
     </tr>
   </table>
         <form action="{% url component_clear_cache component.project.slug component.slug %}" class="microform">
             <input title="{% trans "Reset Transifex's local data for a clean pull" %}" class="i16 cache_empty" value="{% trans "Clear cache" %}" type="submit">
         </form>
+        {# FIXME: tar too restrictive #}
+        {% ifequal component.unit.type "tar" %}<sup><span class="warning" title="{% trans "Any locally modified data will be overwritten with fresh copies." %}">{% trans "warning" %}</span></sup>{% endifequal %}
         {% endif %}
       </td>
     </tr>