Merge remote-tracking branch 'kennyl/travis'
# Conflicts: # cps/web.py
This commit is contained in:
		
						commit
						74a3e6842a
					
				| 
						 | 
					@ -150,9 +150,7 @@
 | 
				
			||||||
</script>
 | 
					</script>
 | 
				
			||||||
<script src="{{ url_for('static', filename='js/libs/typeahead.bundle.js') }}"></script>
 | 
					<script src="{{ url_for('static', filename='js/libs/typeahead.bundle.js') }}"></script>
 | 
				
			||||||
<script src="{{ url_for('static', filename='js/edit_books.js') }}"></script>
 | 
					<script src="{{ url_for('static', filename='js/edit_books.js') }}"></script>
 | 
				
			||||||
<<<<<<< HEAD
 | 
					 | 
				
			||||||
<script src="{{ url_for('static', filename='js/libs/bootstrap-rating-input.min.js') }}"></script>
 | 
					<script src="{{ url_for('static', filename='js/libs/bootstrap-rating-input.min.js') }}"></script>
 | 
				
			||||||
=======
 | 
					 | 
				
			||||||
<script src="{{ url_for('static', filename='js/get_meta.js') }}"></script>
 | 
					<script src="{{ url_for('static', filename='js/get_meta.js') }}"></script>
 | 
				
			||||||
{% endblock %}
 | 
					{% endblock %}
 | 
				
			||||||
{% block header %}
 | 
					{% block header %}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -126,7 +126,7 @@
 | 
				
			||||||
              </button>
 | 
					              </button>
 | 
				
			||||||
              <ul class="dropdown-menu" aria-labelledby="btnGroupDrop1">
 | 
					              <ul class="dropdown-menu" aria-labelledby="btnGroupDrop1">
 | 
				
			||||||
                {% for format in entry.data %}
 | 
					                {% for format in entry.data %}
 | 
				
			||||||
                <li><a href="{{ url_for('get_download_link', book_id=entry.id, format=format.format|lower) }}">{{format.format}}</a></li>
 | 
					                <li><a href="{{ url_for('get_download_link_ext', book_id=entry.id, format=format.format|lower, anyname=entry.id|string+'.'+format.format) }}">{{format.format}}</a></li>
 | 
				
			||||||
                {%endfor%}
 | 
					                {%endfor%}
 | 
				
			||||||
              </ul>
 | 
					              </ul>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1308,7 +1308,6 @@ def read_book(book_id, format):
 | 
				
			||||||
        flash(_(u"Error opening eBook. File does not exist or file is not accessible:"), category="error")
 | 
					        flash(_(u"Error opening eBook. File does not exist or file is not accessible:"), category="error")
 | 
				
			||||||
        return redirect(url_for("index"))
 | 
					        return redirect(url_for("index"))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
@app.route("/download/<int:book_id>/<format>")
 | 
					@app.route("/download/<int:book_id>/<format>")
 | 
				
			||||||
@login_required_if_no_ano
 | 
					@login_required_if_no_ano
 | 
				
			||||||
@download_required
 | 
					@download_required
 | 
				
			||||||
| 
						 | 
					@ -1335,6 +1334,11 @@ def get_download_link(book_id, format):
 | 
				
			||||||
    else:
 | 
					    else:
 | 
				
			||||||
        abort(404)
 | 
					        abort(404)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@app.route("/download/<int:book_id>/<format>/<anyname>")
 | 
				
			||||||
 | 
					@login_required_if_no_ano
 | 
				
			||||||
 | 
					@download_required
 | 
				
			||||||
 | 
					def get_download_link_ext(book_id, format, anyname):
 | 
				
			||||||
 | 
					    return get_download_link(book_id, format)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@app.route('/register', methods=['GET', 'POST'])
 | 
					@app.route('/register', methods=['GET', 'POST'])
 | 
				
			||||||
def register():
 | 
					def register():
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user