Angelo Gallarello 6 سال پیش
والد
کامیت
48216e1653
5فایلهای تغییر یافته به همراه17 افزوده شده و 5 حذف شده
  1. 1 3
      client/components/boards/boardsList.jade
  2. 13 0
      client/components/boards/boardsList.styl
  3. 2 1
      i18n/en.i18n.json
  4. 0 1
      models/export.js
  5. 1 0
      models/import.js

+ 1 - 3
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}}"

+ 13 - 0
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

+ 2 - 1
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"
 }

+ 0 - 1
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

+ 1 - 0
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);
   },
 });