Add Icon and color for "merge_images" service.

This commit is contained in:
Patrick Jentsch 2020-01-08 10:18:15 +01:00
parent 6d65521000
commit 8416bda04b
2 changed files with 7 additions and 4 deletions

View File

@ -103,10 +103,12 @@ class JobList extends List {
); );
} }
} }
JobList.SERVICE_COLORS = {"nlp": "blue", JobList.SERVICE_COLORS = {"merge_images": "amber",
"nlp": "blue",
"ocr": "green", "ocr": "green",
"default": "red"}; "default": "red"};
JobList.SERVICE_ICONS = {"nlp": "format_textdirection_l_to_r", JobList.SERVICE_ICONS = {"merge_images": "burst_mode",
"nlp": "format_textdirection_l_to_r",
"ocr": "find_in_page", "ocr": "find_in_page",
"default": "help"}; "default": "help"};
JobList.STATUS_COLORS = {"submitted": "blue", JobList.STATUS_COLORS = {"submitted": "blue",

View File

@ -19,7 +19,7 @@
</div> </div>
</div> </div>
<div class="col s12 m4"> <div class="col s12 m4">
<p><a href="{{ url_for('corpora.add_corpus') }}" class="waves-effect waves-light btn right"><i class="material-icons left">add</i>New corpus</a></p> <p><a href="{{ url_for('corpora.add_corpus') }}" class="waves-effect waves-light btn right" style="width: 100%;"><i class="material-icons left">add</i>New corpus</a></p>
</div> </div>
<div class="col s12"> <div class="col s12">
<ul class="pagination"></ul> <ul class="pagination"></ul>
@ -63,7 +63,7 @@
</div> </div>
</div> </div>
<div class="col s12 m4"> <div class="col s12 m4">
<p><a id="new-job" class="dropdown-trigger waves-effect waves-light btn right no-autoinit" href="#" data-target="new-job-dropdown"><i class="material-icons left">add</i>New job</a></p> <p><a id="new-job" class="dropdown-trigger waves-effect waves-light btn right no-autoinit" href="#" data-target="new-job-dropdown" style="width: 100%;"><i class="material-icons left">add</i>New job</a></p>
</div> </div>
<div class="col s12"> <div class="col s12">
<ul class="pagination"></ul> <ul class="pagination"></ul>
@ -86,6 +86,7 @@
</script> </script>
<ul id='new-job-dropdown' class='dropdown-content'> <ul id='new-job-dropdown' class='dropdown-content'>
<li><a href="{{ url_for('services.service', service='merge_images') }}"><i class="material-icons">burst_mode</i>Merge images</a></li>
<li><a href="{{ url_for('services.service', service='nlp') }}"><i class="material-icons">format_textdirection_l_to_r</i>NLP</a></li> <li><a href="{{ url_for('services.service', service='nlp') }}"><i class="material-icons">format_textdirection_l_to_r</i>NLP</a></li>
<li><a href="{{ url_for('services.service', service='ocr') }}"><i class="material-icons">find_in_page</i>OCR</a></li> <li><a href="{{ url_for('services.service', service='ocr') }}"><i class="material-icons">find_in_page</i>OCR</a></li>
</ul> </ul>