forked from openmrs/openmrs-module-legacyui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LUI-153: Footer to show optional extra data from runtime properties.
- Loading branch information
1 parent
c864fda
commit d972683
Showing
4 changed files
with
38 additions
and
3 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
omod/src/main/java/org/openmrs/template/web/controller/FooterFullController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/** | ||
* This Source Code Form is subject to the terms of the Mozilla Public License, | ||
* v. 2.0. If a copy of the MPL was not distributed with this file, You can | ||
* obtain one at http:https://mozilla.org/MPL/2.0/. OpenMRS is also distributed under | ||
* the terms of the Healthcare Disclaimer located at http:https://openmrs.org/license. | ||
* | ||
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS | ||
* graphic logo is a trademark of OpenMRS Inc. | ||
*/ | ||
package org.openmrs.template.web.controller; | ||
|
||
import org.openmrs.api.context.Context; | ||
import org.springframework.stereotype.Controller; | ||
import org.springframework.ui.Model; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
|
||
@Controller | ||
public class FooterFullController { | ||
|
||
@RequestMapping("/template/footerFull.htm") | ||
public String footerFull(Model model) { | ||
|
||
String footerExtraData = Context.getRuntimeProperties().getProperty("legacyui.footer.extradata", ""); | ||
|
||
model.addAttribute("extraData", footerExtraData); | ||
|
||
return "module/legacyui/template/footerFull"; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters