Skip to content
This repository was archived by the owner on Dec 5, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
simple-ninja-web
================

Simple web application using Ninja framework
10 changes: 10 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@


<build>
<finalName>ninja-pam</finalName>
<plugins>

<plugin>
Expand Down Expand Up @@ -124,6 +125,15 @@
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.17</version>
<configuration>
<useFile>false</useFile>
</configuration>
</plugin>

</plugins>

<resources>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/conf/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@

# This file is utf-8
header.title=Hello World!
header.home=BAM!
header.home=BAM! Bam!
hello.world=Hello World!
hello.world.json=There is also Json rendering you can check out!
10 changes: 5 additions & 5 deletions src/main/java/views/layout/defaultLayout.ftl.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<script src="/assets/webjars/jquery/1.9.0/jquery.js"></script>
<script src="assets/webjars/jquery/1.9.0/jquery.js"></script>
<meta charset="utf-8">
<title>${title}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">

<!-- Le styles -->
<link href="/assets/webjars/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet">
<link href="assets/webjars/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet">
<!-- Optional theme -->
<link rel="stylesheet" href="/assets/webjars/bootstrap/3.0.0/css/bootstrap-theme.min.css">
<link rel="stylesheet" href="assets/webjars/bootstrap/3.0.0/css/bootstrap-theme.min.css">


<!-- Latest compiled and minified JavaScript -->
Expand Down Expand Up @@ -55,8 +55,8 @@

</div> <!-- /container -->

<script type="text/javascript" src="/assets/webjars/tinymce-jquery/3.4.9/jscripts/tiny_mce/tiny_mce.js" ></script>
<script src="/assets/webjars/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<script type="text/javascript" src="assets/webjars/tinymce-jquery/3.4.9/jscripts/tiny_mce/tiny_mce.js" ></script>
<script src="assets/webjars/bootstrap/3.0.0/js/bootstrap.min.js"></script>
</body>
</html>
</#macro>