Extremely minor touchups.

This commit is contained in:
voussoir 2018-09-23 14:57:25 -07:00
parent 95edc4d397
commit 20e41ad689
5 changed files with 8 additions and 8 deletions

View file

@ -113,7 +113,7 @@ class CantGroupSelf(EtiquetteException):
error_message = 'Cannot group {} into itself.'
class CantSynonymSelf(EtiquetteException):
error_message = 'Cannot apply synonym to self.'
error_message = 'Cannot make {} a synonym of itself.'
class EasyBakeError(EtiquetteException):
error_message = '{}'

View file

@ -1214,7 +1214,7 @@ class Tag(ObjectBase, GroupableMixin):
synname = self.photodb.normalize_tagname(synname)
if synname == self.name:
raise exceptions.CantSynonymSelf()
raise exceptions.CantSynonymSelf(self)
self.photodb.assert_no_such_tag(name=synname)

View file

@ -10,7 +10,7 @@ from . import jsonify
def catch_etiquette_exception(function):
'''
If an EtiquetteException is raised, automatically catch it and convert it
into a response so that the user isn't receiving error 500.
into a json response so that the user isn't receiving error 500.
'''
@functools.wraps(function)
def wrapped(*args, **kwargs):

View file

@ -12,9 +12,8 @@ function _request(method, url, callback)
{
if (callback != null)
{
var text = request.responseText;
var response = {
"data": JSON.parse(text),
"data": JSON.parse(request.responseText),
"meta": {}
};
response["meta"]["request_url"] = url;
@ -179,7 +178,7 @@ function init_button_with_confirm()
delete button.dataset.promptClass;
var button_confirm = document.createElement("button");
button_confirm.innerText = button.dataset.confirm || button.innerText;
button_confirm.innerText = (button.dataset.confirm || button.innerText).trim();
button_confirm.className = button.dataset.confirmClass || "";
holder_stage2.appendChild(button_confirm);
holder_stage2.appendChild(document.createTextNode(" "));

View file

@ -10,7 +10,7 @@
<script src="/static/js/editor.js"></script>
<style>
#bookmarks
#bookmark_list
{
display: flex;
flex: 0 0 auto;
@ -45,7 +45,8 @@
<body>
{{header.make_header(session=session)}}
<div id="content_body">
<div id="bookmarks">
<div id="bookmark_list">
<h2>Bookmarks</h2>
{% for bookmark in bookmarks %}
<div class="bookmark_card" data-bookmark-id="{{bookmark.id}}">
<a