-
Notifications
You must be signed in to change notification settings - Fork 128
/
source.ftl
153 lines (125 loc) · 5.71 KB
/
source.ftl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<!DOCTYPE html>
<html lang="en">
<#assign applicationReportIndexModel = projectModelToApplicationIndex(reportModel.sourceFileModel.projectModel)>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Source Report for ${reportModel.reportName}</title>
<link href="resources/css/bootstrap.min.css" rel="stylesheet">
<link href="resources/css/windup.css" rel="stylesheet" media="screen">
<link rel='stylesheet' type='text/css' href='resources/libraries/snippet/jquery.snippet.min.css' />
<link rel='stylesheet' type='text/css' href='resources/css/windup-source.css' />
<link rel='stylesheet' type='text/css' href='resources/libraries/sausage/sausage.css' />
</head>
<body role="document">
<!-- Fixed navbar -->
<div class="navbar-fixed-top windup-bar" role="navigation">
<div class="container theme-showcase" role="main">
<img src="resources/img/windup-logo.png" class="logo"/>
</div>
</div>
<div class="container" role="main">
<div class="row">
<div class="page-header page-header-no-border">
<h1>
Source Report
<span class="slash">/</span>
<small style="margin-left: 20px; font-weight: 100;">${reportModel.sourceFileModel.prettyPath}</small>
</h1>
<div class="navbar navbar-default">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="navbar-collapse collapse navbar-responsive-collapse">
<ul class="nav navbar-nav">
<li><a href="../index.html"><- All Applications</a></li>
</ul>
</div><!-- /.nav-collapse -->
<div class="navbar-collapse collapse navbar-responsive-collapse">
<ul class="nav navbar-nav">
<#include "include/navbar.ftl">
</ul>
</div><!-- /.nav-collapse -->
</div>
</div>
</div>
</div>
<div class="container theme-showcase" role="main">
<#if reportModel.sourceFileModel.classificationModels.iterator()?has_content || getTechnologyTagsForFile(reportModel.sourceFileModel).iterator()?has_content>
<div class="windupHighLevel">
<h3>Classification</h3>
<ul>
<li>Estimated Story Points: ${getMigrationEffortPointsForFile(reportModel.sourceFileModel)}</li>
<li>
<#list getTechnologyTagsForFile(reportModel.sourceFileModel).iterator() as techTag>
<span class="label label-info">${techTag.name}</span>
</#list>
</li>
</ul>
<ul>
<#list reportModel.sourceFileModel.classificationModels.iterator() as classificationLineItem>
<li>
${classificationLineItem.classification!""}
<#if classificationLineItem.description??>
- ${classificationLineItem.description!""}
</#if>
<#if classificationLineItem.links??>
<ul>
<#list classificationLineItem.links.iterator() as link>
<li>
<a href='${link.link}'>${link.description}</a>
</li>
</#list>
</ul>
</#if>
</li>
</#list>
</ul>
</div>
</#if>
<pre id='source'><#t><#rt>
${reportModel.sourceBody?html}<#t><#rt>
</pre><#t><#rt>
</div> <!-- /container -->
<script src="resources/js/jquery-1.7.min.js"></script>
<script src="resources/js/bootstrap.min.js"></script>
<script type='text/javascript' src='resources/libraries/jquery-ui/jquery.ui.widget.js'></script>
<script type='text/javascript' src='resources/libraries/snippet/jquery.snippet.min.js'></script>
<script type='text/javascript' src='resources/libraries/snippet/jquery.snippet.java-properties.js'></script>
<script type='text/javascript' src='resources/libraries/snippet/jquery.snippet.java-manifest.js'></script>
<script type='text/javascript' src='resources/libraries/sausage/jquery.sausage.min.js'></script>
<script type='text/javascript'>
$(document).ready(function(){
$('pre').snippet('${reportModel.sourceType}',{style:'ide-eclipse', showNum:true,boxFill:'#ffeeb9', box: '${reportModel.sourceBlock}' });
<#list reportModel.sourceFileModel.inlineHints.iterator() as hintLine>
<#assign lineNumber = hintLine.lineNumber>
$("<div id='${lineNumber?c}-inlines' class='inline-source-hint-group'/>").appendTo('ol.snippet-num li:nth-child(${lineNumber?c})');
</#list>
<#list reportModel.sourceFileModel.inlineHints.iterator() as hintLine >
<#assign lineNumber = hintLine.lineNumber>
<#compress>
$("<a name='${hintLine.hashCode()?c}'></a><#t>
<div class='inline-source-comment green'><#t>
<#if hintLine.hint?has_content>
<div class='inline-comment'><div class='inline-comment-heading'><strong class='notification ${hintLine.effort}'>${hintLine.hint?js_string}</strong></div><#t>
</div><#t>
</#if>
</div><#t>
").appendTo('#${lineNumber?c}-inlines');<#t>
</#compress>
</#list>
$('code[data-code-syntax]').each(function(){
var codeSyntax = ($(this).data('code-syntax'));
if(codeSyntax) {
$(this).parent().snippet(codeSyntax,{style:'ide-eclipse', menu:false, showNum:false});
}
});
$(window).sausage({ page: 'li.box' });
});
</script>
</body>
</html>