Commit 3bc2eeda by Dányi Bence

webui: hide share description if not available

parent b006a06d
...@@ -195,7 +195,7 @@ $(function() { ...@@ -195,7 +195,7 @@ $(function() {
e.preventDefault(); e.stopPropagation(); e.preventDefault(); e.stopPropagation();
e=$(this); e=$(this);
if(!e.hasClass('description')){ if(!e.hasClass('description')){
if(e.next().is(':hidden') && e.next().html() != ''){ if(e.next().is(':hidden')){
e.next().slideDown(700); e.next().slideDown(700);
} else { } else {
e.next().slideUp(700); e.next().slideUp(700);
......
...@@ -83,7 +83,13 @@ ...@@ -83,7 +83,13 @@
</form> </form>
<div class="clear"></div> <div class="clear"></div>
</li> </li>
<li class="description">{{i.description}}</li> <li class="description">
{% if i.description %}
{{i.description}}
{% else %}
{% trans "No description available" %}
{% endif %}
</li>
{% endfor %} {% endfor %}
</ul> </ul>
{% endif %} {% endif %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment