Commit 840c905c78d628e0906f8a58121ab05fe55520a0

Authored by Daniel
Committed by Diego Camarinha
1 parent e683b3c9

Change tooltips for new metric configuration form.

Signed-off-by: Diego Araújo <diegoamc90@gmail.com>
app/assets/stylesheets/keywords.css
1   -.keyword-explanation {
  1 +.keywords-explanations div {
2 2 padding-bottom: 20px;
3 3 }
... ...
app/views/metric_configurations/_form.html.erb
... ... @@ -10,7 +10,7 @@
10 10 </div>
11 11 <div class="help-container">
12 12 <p>
13   - It is the Weight of the metric.
  13 + The Weight of a metric is used to calculate the weighted average of a <%= link_to 'module', tutorials_path("keywords", anchor: "module")%>.
14 14 </p>
15 15 </div>
16 16 </div>
... ... @@ -22,7 +22,7 @@
22 22 </div>
23 23 <div class="help-container">
24 24 <p>
25   - It is the Aggregation Form of the metric.
  25 + It is the calculation of statistical results for higher <%= link_to 'granularity', tutorials_path('keywords', anchor: 'granularity') %> modules (e.g., average lines of code of classes inside a package).
26 26 </p>
27 27 </div>
28 28 </div>
... ... @@ -37,7 +37,7 @@
37 37 </div>
38 38 <div class="help-container">
39 39 <p>
40   - The Reading Group associated with this metric.
  40 + The <%= link_to 'Reading Group', tutorials_path('keywords', anchor: 'reading-group') %> associated with this metric.
41 41 </p>
42 42 </div>
43 43 </div>
... ...
app/views/tutorials/keywords.html.erb
... ... @@ -2,19 +2,41 @@
2 2  
3 3 <hr />
4 4  
5   -<h3 id="module">Module</h3>
6 5  
7   -<p class="keyword-explanation">Represents a fragment of the software. Every node in the processing tree generated by the Kalibro processor is a module. It can be a software package, file or the whole software.</p>
  6 +<div class="keywords-explanations">
  7 + <div>
  8 + <h3 id="granularity">Granularity</h3>
8 9  
9   -<h3 id="range">Range</h3>
  10 + <p>Mezuro uses four levels of granularity:</p>
  11 + <ul>
  12 + <li>Method</li>
  13 + <li>Class</li>
  14 + <li>Package</li>
  15 + <li>Software</li>
  16 + </ul>
  17 + </div>
10 18  
11   -<p class="keyword-explanation">Represents numerical intervals that may contain the value calculated for a given metric. Ranges combined with readings provide interpretations for metric results.</p>
  19 + <div>
  20 + <h3 id="module">Module</h3>
12 21  
13   -<h3 id="reading">Reading</h3>
  22 + <p>Represents a fragment of the software. Every node in the processing tree generated by the Kalibro processor is a module. It can be a software package, file or the whole software.</p>
  23 + </div>
14 24  
15   -<p class="keyword-explanation">The interpretation given to a metric result (e.g., "Good", "Complex", "A"). Readings combined with ranges provide interpretations for metric results.</p>
  25 + <div>
  26 + <h3 id="range">Range</h3>
16 27  
17   -<h3 id="reading-group">Reading Group</h3>
  28 + <p>Represents numerical intervals that may contain the value calculated for a given metric. Ranges combined with readings provide interpretations for metric results.</p>
  29 + </div>
18 30  
19   -<p class="keyword-explanation">A set of readings that make sense when grouped together (e.g., "Good" and "Bad", "Simple" and "Complex").</p>
  31 + <div>
  32 + <h3 id="reading">Reading</h3>
20 33  
  34 + <p>The interpretation given to a metric result (e.g., "Good", "Complex", "A"). Readings combined with ranges provide interpretations for metric results.</p>
  35 + </div>
  36 +
  37 + <div>
  38 + <h3 id="reading-group">Reading Group</h3>
  39 +
  40 + <p>A set of readings that make sense when grouped together (e.g., "Good" and "Bad", "Simple" and "Complex").</p>
  41 + </div>
  42 +</div>
... ...