scrollToLine: (line) ->
row = @$("[data-line-number=#{line}]")
- goal = if row.length > 0 then row.offset().top - 40 else 0
+ goal = if row.length > 0 then row.offset().top - 200 else 0
$(window).scrollTop goal
<table class="spaced">
<tbody>
- {{#if issue.author}}
- <tr>
- <td colspan="3">
- {{t 'author'}}: {{issue.author}}
- </td>
- </tr>
- {{/if}}
-
- {{#if issue.reporter}}
- <tr>
- <td colspan="3">
- {{t 'reporter'}}: {{default issue.reporterName issue.reporter}}
- </td>
- </tr>
- {{/if}}
-
<tr>
<td class="thin left top" nowrap>{{dt issue.creationDate}}</td>
<td class="thin left top" nowrap></td>
- <td class="left top">{{t 'created'}}</td>
+ <td class="left top">
+ {{#if issue.reporter}}
+ {{t 'issue.reported_by'}} {{default issue.reporterName issue.reporter}}
+ {{else}}
+ {{#if issue.author}}
+ {{t 'created_by'}} {{issue.author}}
+ {{else}}
+ {{t 'created'}}
+ {{/if}}
+ {{/if}}
+ </td>
</tr>
- x§
+
{{#each items}}
<tr>
<td class="thin left top" nowrap>{{dt creationDate}}</td>
<span class="subtitle">{{key}}</span>
-<div class="coding-rules-detail-description rule-desc markdown">{{{htmlDesc}}}</div>
+<div class="coding-rules-detail-description rule-desc markdown">{{{htmlDesc}}} {{{htmlDesc}}} {{{htmlDesc}}} {{{htmlDesc}}}</div>
-<a class="overlay-popup-close icon-close" title="{{t 'close'}}"></a>
+<div class="modal-foot">
+ <a class="overlay-popup-close" title="{{t 'close'}}">{{t 'close'}}</a>
+</div>
}
-@overlayPopupMargin: 40px;
+@overlayPopupMargin: 20px;
+@overlayPopupPadding: 40px;
.overlay-popup {
position: fixed;
z-index: 1200;
- top: 0;
- bottom: 0;
- left: 0;
- right: 0;
- padding: @overlayPopupMargin;
+ top: @overlayPopupMargin;
+ bottom: @overlayPopupMargin;
+ left: @overlayPopupMargin;
+ right: @overlayPopupMargin;
+ padding: @overlayPopupPadding @overlayPopupPadding @overlayPopupPadding + 30px;
background-color: #fff;
overflow: scroll;
+ box-shadow: 0 0 20px 15px rgba(0, 0, 0, 0.5);
+
+ .modal-foot {
+ position: fixed;
+ z-index: 1201;
+ bottom: @overlayPopupMargin;
+ left: @overlayPopupMargin;
+ right: @overlayPopupMargin;
+ }
}
-.overlay-popup-close {
- position: absolute;
- top: 8px;
- right: 8px;
-}