about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-12-03 16:19:23 -0600
committerFrederick Muriuki Muriithi2024-12-03 16:19:23 -0600
commit72e297afd3ac67ef601e81d515922fb8754c0321 (patch)
tree4dad06c5d75059a1a4050d2f941bbee41bdb3dc7
parentcb4f7e86a1bf89ff05fa041597523d5c9914027d (diff)
downloadgn-uploader-72e297afd3ac67ef601e81d515922fb8754c0321.tar.gz
UI: Clip text that is too long.
-rw-r--r--uploader/templates/phenotypes/job-status.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/uploader/templates/phenotypes/job-status.html b/uploader/templates/phenotypes/job-status.html
index c810c6f..6b3431e 100644
--- a/uploader/templates/phenotypes/job-status.html
+++ b/uploader/templates/phenotypes/job-status.html
@@ -70,7 +70,13 @@
           {{error.cellvalue}}
           {%endif%}
         </td>
-        <td>{{error.message}}</td>
+        <td>
+          {%if error.message | length > 250 %}
+          {{error.message[0:249]}}&hellip;
+          {%else%}
+          {{error.message}}
+          {%endif%}
+        </td>
       </tr>
       {%endfor%}
     </tbody>