File: default.xhtml

package info (click to toggle)
ruby-ramaze 2012.12.08-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,060 kB
  • ctags: 1,200
  • sloc: ruby: 10,446; makefile: 8
file content (61 lines) | stat: -rw-r--r-- 1,734 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />

        <title>#{@title}</title>

        #{css('reset')}
        #{css('grid')}
        #{css('layout')}
        #{css('text')}
    </head>
    <body>
        <div class="container">
            <div id="container" class="row">
                <!-- Top part, contains the navigation menu -->
                <div id="top" class="grid_12">
                    <header class="grid_6">
                        <h1>#{@title}</h1>
                    </header>

                    <nav class="grid_6 last">
                        <ul class="clearfix">
                            <li>#{Posts.a('Posts', :index)}</li>

                            <?r if logged_in? ?>

                            <li>#{Users.a('Users', :index)}</li>
                            <li>#{Users.a('Logout', :logout)}</li>

                            <?r else ?>

                            <li>#{Users.a('Login', :login)}</li>

                            <?r end ?>
                        </ul>
                    </nav>
                </div>

                <?r [:success, :error].each do |type| ?>
                <?r if flash[type] ?>
                <div class="message grid_12 #{type}">
                    <p>#{flash[type]}</p>
                </div>
                <?r end ?>
                <?r end ?>

                <div id="content" class="grid_12">
                    #{@content}
                </div>
            </div>

            <footer id="footer">
                <p>
                    Ramaze is free software and is licensed under the Ruby
                    license.
                </p>
            </footer>
        </div>
    </body>
</html>