diff --git a/src/main/resources/public/js/papers.js b/src/main/resources/public/js/papers.js
index e2be107..8322440 100644
--- a/src/main/resources/public/js/papers.js
+++ b/src/main/resources/public/js/papers.js
@@ -7,17 +7,16 @@ function showPapers(papersElement, paperRowClass) {
getFromRest(urlPapers, function (paperList) {
paperList.forEach(function (paper, index) {
$(papersElement).parent().append("
" +
- "
" +
+ "
" +
- "
" +
- "" +
+ "'>" + (index + 1) + ". " + paper.title + "" +
+ "" +
"" +
- "
");
+ "
");
});
$(paperRowClass).mouseenter(function (event) {
@@ -110,11 +109,36 @@ function getPaperStatusClass(status) {
return "text-draft"
case 'ON_PREPARATION':
return "text-primary";
+ case 'ON_REVIEW':
+ return "text-primary";
case 'COMPLETED':
return "text-success";
case 'ATTENTION':
return "text-warning";
+ case 'FAILED':
+ return "text-failed";
default:
return "";
}
+}
+
+function showPaperDashboard(dashboardElement) {
+ getFromRest(urlPapers, function (paperList) {
+ paperList.forEach(function (paper, index) {
+ $(dashboardElement).append("