euscanwww: added alert on refresh request, added missing pull-right
Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
		@@ -20,12 +20,14 @@
 | 
			
		||||
  Category: {{ category }}
 | 
			
		||||
 | 
			
		||||
  {% if user.is_authenticated %}
 | 
			
		||||
    <button class="btn favourite-button {% if favourited %}hide{% endif %}" data-url="{% url "favourite_category" category %}">
 | 
			
		||||
      <img src="{{ STATIC_URL}}/img/watch-icon.png" alt="Watch" >
 | 
			
		||||
    </button>
 | 
			
		||||
    <button class="btn unfavourite-button {% if not favourited %}hide{% endif %}" data-url="{% url "unfavourite_category" category %}">
 | 
			
		||||
      <img src="{{ STATIC_URL}}/img/unwatch-icon.png" alt="Unwatch" >
 | 
			
		||||
    </button>
 | 
			
		||||
    <span class="pull-right">
 | 
			
		||||
      <button class="btn favourite-button {% if favourited %}hide{% endif %}" data-url="{% url "favourite_category" category %}">
 | 
			
		||||
        <img src="{{ STATIC_URL}}/img/watch-icon.png" alt="Watch" >
 | 
			
		||||
      </button>
 | 
			
		||||
      <button class="btn unfavourite-button {% if not favourited %}hide{% endif %}" data-url="{% url "unfavourite_category" category %}">
 | 
			
		||||
        <img src="{{ STATIC_URL}}/img/unwatch-icon.png" alt="Unwatch" >
 | 
			
		||||
      </button>
 | 
			
		||||
    </span>
 | 
			
		||||
  {% endif %}
 | 
			
		||||
</h2>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -19,12 +19,14 @@
 | 
			
		||||
<h2>
 | 
			
		||||
  Herd: {{ herd.herd }}
 | 
			
		||||
  {% if user.is_authenticated %}
 | 
			
		||||
    <button class="btn favourite-button {% if favourited %}hide{% endif %}" data-url="{% url "favourite_herd" herd.herd %}">
 | 
			
		||||
      <img src="{{ STATIC_URL}}/img/watch-icon.png" alt="Watch" >
 | 
			
		||||
    </button>
 | 
			
		||||
    <button class="btn unfavourite-button {% if not favourited %}hide{% endif %}" data-url="{% url "unfavourite_herd" herd.herd %}">
 | 
			
		||||
      <img src="{{ STATIC_URL}}/img/unwatch-icon.png" alt="Unwatch" >
 | 
			
		||||
    </button>
 | 
			
		||||
    <span class="pull-right">
 | 
			
		||||
      <button class="btn favourite-button {% if favourited %}hide{% endif %}" data-url="{% url "favourite_herd" herd.herd %}">
 | 
			
		||||
        <img src="{{ STATIC_URL}}/img/watch-icon.png" alt="Watch" >
 | 
			
		||||
      </button>
 | 
			
		||||
      <button class="btn unfavourite-button {% if not favourited %}hide{% endif %}" data-url="{% url "unfavourite_herd" herd.herd %}">
 | 
			
		||||
        <img src="{{ STATIC_URL}}/img/unwatch-icon.png" alt="Unwatch" >
 | 
			
		||||
      </button>
 | 
			
		||||
    </span>
 | 
			
		||||
  {% endif %}
 | 
			
		||||
 | 
			
		||||
</h2>
 | 
			
		||||
 
 | 
			
		||||
@@ -21,14 +21,17 @@
 | 
			
		||||
<h2>
 | 
			
		||||
  Maintainer: {{ maintainer.name }} <{{ maintainer.email }}>
 | 
			
		||||
  {% if user.is_authenticated %}
 | 
			
		||||
    <button class="btn favourite-button {% if favourited %}hide{% endif %}" data-url="{% url "favourite_maintainer" maintainer.id %}">
 | 
			
		||||
      <img src="{{ STATIC_URL}}/img/watch-icon.png" alt="Watch" >
 | 
			
		||||
    </button>
 | 
			
		||||
    <button class="btn unfavourite-button {% if not favourited %}hide{% endif %}" data-url="{% url "unfavourite_maintainer" maintainer.id %}">
 | 
			
		||||
      <img src="{{ STATIC_URL}}/img/unwatch-icon.png" alt="Unwatch" >
 | 
			
		||||
    </button>
 | 
			
		||||
    <span class="pull-right">
 | 
			
		||||
      <button class="btn favourite-button {% if favourited %}hide{% endif %}" data-url="{% url "favourite_maintainer" maintainer.id %}">
 | 
			
		||||
        <img src="{{ STATIC_URL}}/img/watch-icon.png" alt="Watch" >
 | 
			
		||||
      </button>
 | 
			
		||||
      <button class="btn unfavourite-button {% if not favourited %}hide{% endif %}" data-url="{% url "unfavourite_maintainer" maintainer.id %}">
 | 
			
		||||
        <img src="{{ STATIC_URL}}/img/unwatch-icon.png" alt="Unwatch" >
 | 
			
		||||
      </button>
 | 
			
		||||
    </span>
 | 
			
		||||
  {% endif %}
 | 
			
		||||
</h2>
 | 
			
		||||
 | 
			
		||||
{% packages packages %}
 | 
			
		||||
 | 
			
		||||
<h3>Statistics</h2>
 | 
			
		||||
 
 | 
			
		||||
@@ -11,12 +11,14 @@
 | 
			
		||||
<h2>
 | 
			
		||||
  Overlay: {{ overlay }}
 | 
			
		||||
  {% if user.is_authenticated %}
 | 
			
		||||
    <button class="btn favourite-button {% if favourited %}hide{% endif %}" data-url="{% url "favourite_overlay" overlay %}">
 | 
			
		||||
      <img src="{{ STATIC_URL}}/img/watch-icon.png" alt="Watch" >
 | 
			
		||||
    </button>
 | 
			
		||||
    <button class="btn unfavourite-button {% if not favourited %}hide{% endif %}" data-url="{% url "unfavourite_overlay" overlay %}">
 | 
			
		||||
      <img src="{{ STATIC_URL}}/img/unwatch-icon.png" alt="Unwatch" >
 | 
			
		||||
    </button>
 | 
			
		||||
    <span class="pull-right">
 | 
			
		||||
      <button class="btn favourite-button {% if favourited %}hide{% endif %}" data-url="{% url "favourite_overlay" overlay %}">
 | 
			
		||||
        <img src="{{ STATIC_URL}}/img/watch-icon.png" alt="Watch" >
 | 
			
		||||
      </button>
 | 
			
		||||
      <button class="btn unfavourite-button {% if not favourited %}hide{% endif %}" data-url="{% url "unfavourite_overlay" overlay %}">
 | 
			
		||||
        <img src="{{ STATIC_URL}}/img/unwatch-icon.png" alt="Unwatch" >
 | 
			
		||||
      </button>
 | 
			
		||||
    </span>
 | 
			
		||||
  {% endif %}
 | 
			
		||||
 | 
			
		||||
</h2>
 | 
			
		||||
 
 | 
			
		||||
@@ -32,6 +32,10 @@
 | 
			
		||||
  </div>
 | 
			
		||||
{% endif %}
 | 
			
		||||
 | 
			
		||||
<div class="refresh-alert alert {% if not refreshed %}hide{% endif %}">
 | 
			
		||||
  A refresh request is in progress, please wait...
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
<h2>
 | 
			
		||||
  {{ package.category }}/{{ package.name }}
 | 
			
		||||
 | 
			
		||||
@@ -214,6 +218,7 @@
 | 
			
		||||
        function() {
 | 
			
		||||
          $(".refresh-button").addClass("hide");
 | 
			
		||||
          $(".refresh-button-disabled").removeClass("hide");
 | 
			
		||||
          $(".refresh-alert").show("slow");
 | 
			
		||||
        });
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user