Minor fixes

This commit is contained in:
Angelo Gallarello 2019-04-05 10:38:39 +02:00
parent 477d71e0b9
commit 48216e1653
5 changed files with 17 additions and 5 deletions

View file

@ -22,9 +22,7 @@ template(name="boardList")
i.fa.js-star-board( i.fa.js-star-board(
class="fa-star{{#if isStarred}} is-star-active{{else}}-o{{/if}}" class="fa-star{{#if isStarred}} is-star-active{{else}}-o{{/if}}"
title="{{_ 'star-board-title'}}") title="{{_ 'star-board-title'}}")
i.fa.js-clone-board( i.fa.js-clone-board(class="fa-clone")
class="fa-clone")
if hasSpentTimeCards if hasSpentTimeCards
i.fa.js-has-spenttime-cards( i.fa.js-has-spenttime-cards(
class="fa-circle{{#if hasOvertimeCards}} has-overtime-card-active{{else}} no-overtime-card-active{{/if}}" class="fa-circle{{#if hasOvertimeCards}} has-overtime-card-active{{else}} no-overtime-card-active{{/if}}"

View file

@ -93,14 +93,27 @@ $spaceBetweenTiles = 16px
.is-star-active .is-star-active
color: white 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 li:hover a
&:hover &:hover
.fa-star, .fa-star,
.fa-clone,
.fa-star-o .fa-star-o
color: white color: white
.fa-star, .fa-star,
.fa-clone,
.fa-star-o .fa-star-o
color: white color: white
opacity: .75 opacity: .75

View file

@ -664,5 +664,6 @@
"error-undefined": "Something went wrong", "error-undefined": "Something went wrong",
"error-ldap-login": "An error occurred while trying to login", "error-ldap-login": "An error occurred while trying to login",
"display-authentication-method": "Display Authentication Method", "display-authentication-method": "Display Authentication Method",
"default-authentication-method": "Default Authentication Method" "default-authentication-method": "Default Authentication Method",
"copy-tag": "Copy"
} }

View file

@ -17,7 +17,6 @@ if (Meteor.isServer) {
JsonRoutes.add('get', '/api/boards/:boardId/export', function(req, res) { JsonRoutes.add('get', '/api/boards/:boardId/export', function(req, res) {
console.error("LOGG API");
const boardId = req.params.boardId; const boardId = req.params.boardId;
let user = null; let user = null;
// todo XXX for real API, first look for token in Authentication: header // todo XXX for real API, first look for token in Authentication: header

View file

@ -39,6 +39,7 @@ Meteor.methods({
let addData = {}; let addData = {};
addData.membersMapping = wekanMembersMapper.getMembersToMap(data); addData.membersMapping = wekanMembersMapper.getMembersToMap(data);
const creator = new WekanCreator(addData); const creator = new WekanCreator(addData);
data.title = data.title + " - " + TAPi18n.__('copy-tag');
return creator.create(data, currentBoardId); return creator.create(data, currentBoardId);
}, },
}); });