summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngelo Gallarello <angelo.gallarell@gmail.com>2019-04-05 10:38:39 +0200
committerAngelo Gallarello <angelo.gallarell@gmail.com>2019-04-05 10:38:39 +0200
commit48216e16537d50a27579c545c93624c0302a5a78 (patch)
treee09f470769c83d44edffc8572619133ad45ff3e7
parent477d71e0b90d15b54945a1a04cb0a649344075ae (diff)
downloadwekan-48216e16537d50a27579c545c93624c0302a5a78.tar.gz
wekan-48216e16537d50a27579c545c93624c0302a5a78.tar.bz2
wekan-48216e16537d50a27579c545c93624c0302a5a78.zip
Minor fixes
-rw-r--r--client/components/boards/boardsList.jade4
-rw-r--r--client/components/boards/boardsList.styl13
-rw-r--r--i18n/en.i18n.json3
-rw-r--r--models/export.js1
-rw-r--r--models/import.js1
5 files changed, 17 insertions, 5 deletions
diff --git a/client/components/boards/boardsList.jade b/client/components/boards/boardsList.jade
index 109c25ed..753724fc 100644
--- a/client/components/boards/boardsList.jade
+++ b/client/components/boards/boardsList.jade
@@ -22,9 +22,7 @@ template(name="boardList")
i.fa.js-star-board(
class="fa-star{{#if isStarred}} is-star-active{{else}}-o{{/if}}"
title="{{_ 'star-board-title'}}")
- i.fa.js-clone-board(
- class="fa-clone")
-
+ i.fa.js-clone-board(class="fa-clone")
if hasSpentTimeCards
i.fa.js-has-spenttime-cards(
class="fa-circle{{#if hasOvertimeCards}} has-overtime-card-active{{else}} no-overtime-card-active{{/if}}"
diff --git a/client/components/boards/boardsList.styl b/client/components/boards/boardsList.styl
index 80e47685..9f0b204e 100644
--- a/client/components/boards/boardsList.styl
+++ b/client/components/boards/boardsList.styl
@@ -93,14 +93,27 @@ $spaceBetweenTiles = 16px
.is-star-active
color: white
+ .fa-clone
+ position: absolute;
+ bottom: 0
+ font-size: 14px
+ height: 18px
+ line-height: 18px
+ opacity: 0
+ right: 0
+ padding: 9px 9px
+ transition-duration: .15s
+ transition-property: color, font-size, background
li:hover a
&:hover
.fa-star,
+ .fa-clone,
.fa-star-o
color: white
.fa-star,
+ .fa-clone,
.fa-star-o
color: white
opacity: .75
diff --git a/i18n/en.i18n.json b/i18n/en.i18n.json
index d4e817ea..84975fde 100644
--- a/i18n/en.i18n.json
+++ b/i18n/en.i18n.json
@@ -664,5 +664,6 @@
"error-undefined": "Something went wrong",
"error-ldap-login": "An error occurred while trying to login",
"display-authentication-method": "Display Authentication Method",
- "default-authentication-method": "Default Authentication Method"
+ "default-authentication-method": "Default Authentication Method",
+ "copy-tag": "Copy"
}
diff --git a/models/export.js b/models/export.js
index 21710067..f7f2b713 100644
--- a/models/export.js
+++ b/models/export.js
@@ -17,7 +17,6 @@ if (Meteor.isServer) {
JsonRoutes.add('get', '/api/boards/:boardId/export', function(req, res) {
- console.error("LOGG API");
const boardId = req.params.boardId;
let user = null;
// todo XXX for real API, first look for token in Authentication: header
diff --git a/models/import.js b/models/import.js
index c73959b7..bf3a863e 100644
--- a/models/import.js
+++ b/models/import.js
@@ -39,6 +39,7 @@ Meteor.methods({
let addData = {};
addData.membersMapping = wekanMembersMapper.getMembersToMap(data);
const creator = new WekanCreator(addData);
+ data.title = data.title + " - " + TAPi18n.__('copy-tag');
return creator.create(data, currentBoardId);
},
});