diff --git a/comments/admin.py b/comments/admin.py index ac6a36e65aab47674d8579434abd6d721b104d8f..6cfa6fa189234c235205ff884230843cb796e43a 100644 --- a/comments/admin.py +++ b/comments/admin.py @@ -4,13 +4,17 @@ from .constants import STATUS_VETTED from .models import Comment +def comment_opening(comment): + return comment.comment_text[:30] + '...' + + def comment_is_vetted(comment): '''Check if comment is vetted.''' return comment.status is STATUS_VETTED class CommentAdmin(admin.ModelAdmin): - list_display = ('comment_text', 'author', 'date_submitted', comment_is_vetted) + list_display = (comment_opening, 'author', 'date_submitted', comment_is_vetted) date_hierarchy = 'date_submitted' list_filter = ('status',) comment_is_vetted.boolean = True diff --git a/docs/contributors/editorial_administrators/production.rst b/docs/contributors/editorial_administrators/production.rst index 89b6d428ee387546e0c10cb564f549839ccdcd32..bc2dbcd3779b3f16d286e6fe81947e22d3424935 100644 --- a/docs/contributors/editorial_administrators/production.rst +++ b/docs/contributors/editorial_administrators/production.rst @@ -37,7 +37,7 @@ Source retrieval and folder preparation #. Copy the paper’s sources one level down (so from ``####.#####v#`` to the current directory). BE CAREFUL: if the authors have included any of the SciPost style files (``SciPost.cls``, ``SciPost_bibstyle.bst``), DO NOT - copy those down. You can skip this step if the previous step immediately led + copy those down. You can skip this step if the previous step immediately led to a ``.tex`` file. #. Copy the files in ``[Journal full name]/v##_production/FILES_TO_COPY_IN_PAPER_DIR`` @@ -216,7 +216,7 @@ Step-by-step procedure If a single horizontal line is pushed to the next page, correct by playing with negatime ``\vspace``. - + #. TODO: COPYRIGHT @@ -400,8 +400,8 @@ References formatting If not, use the format ``\href{https://arxiv.org/abs/####.#####}{arXiv:####.#####}``, and remove any ``(YEAR)``. - \J. Stat. Mech. is annoying (volume number is year). Manually remove volume nr for - these, so the format becomes ``A. Bee, \emp{Bee's nice paper}, J. Stat. Mech.: Th. Exp. [P,L]##### (20##), \doi{10...}.`` + \J. Stat. Mech. and JHEP are annoying (because the volume number is the year). + Manually remove volume nr for these, so the format becomes ``A. Bee, \emp{Bee's nice paper}, J. Stat. Mech.: Th. Exp. [P,L]##### (20##), \doi{10...}.`` \J. Phys. A is also annoying. Up to and including volume 39 (2006), it's \J. Phys. A: Math. Gen. Afterwards, volume 40 (2007) onwards, it's @@ -413,7 +413,7 @@ References formatting Check that all DOIs work. Remove the ``\meta`` at the end of the bibitem if it is present. - + Layout verification ~~~~~~~~~~~~~~~~~~~