[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master c341dbb 108/156: Factor out compliance_tracki
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master c341dbb 108/156: Factor out compliance_tracking template from the footer one |
Date: |
Tue, 30 Jan 2018 17:22:23 -0500 (EST) |
branch: master
commit c341dbbefdceb8be8b8bcd49028412b33e02014e
Author: Vadim Zeitlin <address@hidden>
Commit: Vadim Zeitlin <address@hidden>
Factor out compliance_tracking template from the footer one
This will allow the compliance tracking number to be reused elsewhere.
---
compliance_tracking_number.mustache | 20 ++++++++++++++++++++
footer.mustache | 19 +------------------
2 files changed, 21 insertions(+), 18 deletions(-)
diff --git a/compliance_tracking_number.mustache
b/compliance_tracking_number.mustache
new file mode 100644
index 0000000..3df9264
--- /dev/null
+++ b/compliance_tracking_number.mustache
@@ -0,0 +1,20 @@
+{{!
+ This template defines the compliance tracking number used in a few
+ different places to avoid duplicating this logic in all of them.
+}}
+{{#IsInforce}}
+ {{#Composite}}
+ {{ImprimaturInforceComposite}}
+ {{/Composite}}
+ {{^Composite}}
+ {{ImprimaturInforce}}
+ {{/Composite}}
+{{/IsInforce}}
+{{^IsInforce}}
+ {{#Composite}}
+ {{ImprimaturPresaleComposite}}
+ {{/Composite}}
+ {{^Composite}}
+ {{ImprimaturPresale}}
+ {{/Composite}}
+{{/IsInforce}}
diff --git a/footer.mustache b/footer.mustache
index a4cebb4..cae1adb 100644
--- a/footer.mustache
+++ b/footer.mustache
@@ -12,24 +12,7 @@
<tr>
<td>System Version: {{LmiVersion}}</td>
<td> </td>
- <td align="right">
- {{#IsInforce}}
- {{#Composite}}
- {{ImprimaturInforceComposite}}
- {{/Composite}}
- {{^Composite}}
- {{ImprimaturInforce}}
- {{/Composite}}
- {{/IsInforce}}
- {{^IsInforce}}
- {{#Composite}}
- {{ImprimaturPresaleComposite}}
- {{/Composite}}
- {{^Composite}}
- {{ImprimaturPresale}}
- {{/Composite}}
- {{/IsInforce}}
- </td>
+ <td align="right">{{>compliance_tracking_number}}</td>
</tr>
</table>
- [lmi-commits] [lmi] master a0a167e 144/156: Rename "compliance_tracking_number" template to "imprimatur", (continued)
- [lmi-commits] [lmi] master a0a167e 144/156: Rename "compliance_tracking_number" template to "imprimatur", Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 982c9f0 149/156: Remove consecutive blank lines from a Mustache template, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master ec73905 058/156: Add extra pair of braces to std::array<> initializer for clang, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 6a5cd32 079/156: Add "Table Rating" to the header if necessary, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master b01d478 029/156: Resurrect ledger XML IO code as new ledger_evaluator, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 89c676d 009/156: Add pdf_writer_wx::get_page_height() helper, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 8e26a76 004/156: Improve encapsulation by returning only wxDC from pdf_writer_wx, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master cb5cb7b 021/156: Add more contents to the narrative summary page, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 173cc28 022/156: Change interpolated strings syntax to be Mustache-like, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 2e4850c 023/156: Implement the rest of "Narrative Summary" page body text, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master c341dbb 108/156: Factor out compliance_tracking template from the footer one,
Greg Chicares <=
- [lmi-commits] [lmi] master 76881d8 019/156: Refactor: extra add_body_paragraph() helper, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 08127f1 028/156: Add symbolic constant for the "valign" HTML attribute, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 0d6c7f0 062/156: Get rid of separate wxDC parameter in the code, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master bbada54 084/156: Add image to the columns headings page too, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 3cf5a1c 056/156: Add wx_table_generator::output_super_header(), Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 95e616e 105/156: Add wx_table_generator::columns_count() accessor, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 3f1d437 088/156: Add add_abbreviated_variable() helper, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 118a249 097/156: Add "Column Definitions and Key Terms" page to NASD illustrations, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 1ab47c0 063/156: Fix definition of integer-valued variable in PDF illustrations, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master bb21f4d 077/156: Fix header for composite illustrations, Greg Chicares, 2018/01/30