JiHan Kim 2014-03-27
Issue: use labelStyles instead of Label.js for label color
@c1aa8ca80ac3133507efbdec310dfbe1ba7a1059
app/views/issue/view.scala.html
--- app/views/issue/view.scala.html
+++ app/views/issue/view.scala.html
@@ -63,7 +63,7 @@
 
                         @**<!-- author  -->**@
                         <dl class="author">
-                            <dt>@Messages("issue.author")</dt>
+                            <dt>@Messages("igitssue.author")</dt>
                             <dd style="padding:5px 10px;">
                                 <a href="@routes.UserApp.userInfo(issue.authorLoginId)" class="usf-group">
                                     <span class="avatar-wrap smaller">
@@ -283,24 +283,18 @@
     	</div>
     </div>
 </div>
+
 @common.markdown(project)
-@common.issueLabel()
 @common.commentDeleteModal()
 @common.select2()
+
+<link rel="stylesheet" type="text/css" media="screen" href="@routes.IssueLabelApp.labelStyles(project.owner, project.name)">
 <link rel="stylesheet" type="text/css" media="screen" href="@routes.Assets.at("javascripts/lib/mentionjs/mention.css")">
 <script type="text/javascript" src="@routes.Assets.at("javascripts/lib/mentionjs/mention.js")"></script>
 <script type="text/javascript">
     $(document).ready(function(){
-        // yobi.Label
-        var htOptLabel = {
-            "bEditable"    : false,
-            "sURLLabels"   : "@routes.IssueLabelApp.labels(project.owner, project.name)",
-            "sURLPost"     : "@routes.IssueLabelApp.newLabel(project.owner, project.name)"
-        };
-
         // yobi.issue.View
         $yobi.loadModule("issue.View", {
-            "htOptLabel"    : htOptLabel,
             "sWatchUrl"     : "@routes.WatchApp.watch(issue.asResource.asParameter)",
             "sUnwatchUrl"   : "@routes.WatchApp.unwatch(issue.asResource.asParameter)",
             "sIssuesUrl"    : "@routes.IssueApp.massUpdate(project.owner, project.name)",
public/javascripts/service/yobi.issue.View.js
--- public/javascripts/service/yobi.issue.View.js
+++ public/javascripts/service/yobi.issue.View.js
@@ -26,7 +26,6 @@
 
             _initFileUploader();
             _initFileDownloader();
-            _setLabelTextColor();
 
             _setTimelineUpdateTimer();
 
@@ -40,13 +39,11 @@
             htElement.welUploader = $("#upload");
             htElement.welTextarea = $("#comment-editor");
 
-            htElement.welLabels = $('.issue-label');
             htElement.welBtnWatch = $('#watch-button');
 
             htElement.welAssignee = htOptions.welAssignee || $("#assignee");
             htElement.welMilestone = htOptions.welMilestone || $("#milestone");
             htElement.welIssueUpdateForm = htOptions.welIssueUpdateForm;
-            htElement.sIssueCheckBoxesSelector = htOptions.sIssueCheckBoxesSelector;
 
             htElement.welChkIssueOpen = $("#issueOpen");
             htElement.welTimelineWrap = $("#timeline");
@@ -251,23 +248,6 @@
                     (new yobi.Attachments({"elContainer": elContainer}));
                 }
             });
-        }
-
-        /**
-         * set Labels foreground color as contrast to background color
-         */
-        function _setLabelTextColor(){
-            var welLabel;
-            var sBgColor, sColor;
-
-            htElement.welLabels.each(function(nIndex, elLabel){
-                welLabel = $(elLabel);
-                sBgColor = welLabel.css("background-color");
-                sColor = $yobi.getContrastColor(sBgColor);
-                welLabel.css("color", sColor);
-            });
-
-            welLabel = null;
         }
 
         /**
Add a comment
List