Merge: New `optional` annotation on attributes
[nit.git] / contrib / opportunity / src / templates / welcome.nit
1 # This file is part of NIT ( http://www.nitlanguage.org ).
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License
14
15 # Welcome page for Opportunity
16 module welcome is i18n
17
18 import boilerplate
19
20 # Welcome page for Opportunity
21 class OpportunityHomePage
22 super OpportunityPage
23
24 init do
25 body = """
26 <div class="container">
27 <p class="text-center"><img src="/static/opportunity.svg"></p>
28
29 <div class="jumbotron text-center">
30 <p>
31 {{{"Opportunity is a free (as in free software), easy-to-use, meetup planner."}}}
32 {{{"You can start using it right now by creating a new Meetup and sharing it with your friends!"}}}
33 </p>
34 <form action="new_meetup">
35 <button type="submit" class="btn btn-lg center-block btn-success">{{{"Create a Meetup"}}}</button>
36 </form>
37 </div>
38 </div>
39 """
40 end
41 end