aboutsummaryrefslogtreecommitdiff
blob: 9909216f75204d1ff0ca1217d820035ad5ca116d (plain)
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
	"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<title><% if @pageTitle%><%= @pageTitle %> &mdash; <% end %>GLSAMaker 2</title>
<!--	<%= stylesheet_link_tag "screen", :cache => false %>
	<%= stylesheet_link_tag "admin", :cache => false %>
	<%= stylesheet_link_tag "modalbox", :cache => false %>
  <%= javascript_include_tag :all, :cache => false %>-->
  <%= stylesheet_link_tag    "application" %>
  <%= javascript_include_tag "application" %>
  <%= csrf_meta_tags %>
</head>
<body id="<%= h @pageID if @pageID %>">
  <div id="top-menu">
    <div class="floatright">
      <ul>
        <li><a href="/my/account" class="my-account">My account</a></li>
      </ul>
    </div>
    <div id="loggedas">Logged in as <a href="#"><%= current_user.login %> (<%= current_user.name %>)</a></div>
    <ul>
      <li><a href="/" class="home">Home</a></li>
      <% if current_user.is_el_jefe? %><li><a href="/admin" class="administration">Administration</a></li><% end %>
      <!--<li><a href="#" class="help">Help</a></li>-->
    </ul>
  </div>

  <div id="menu">
        <img src="/assets/logo.png" alt="Home" class="logo" usemap="#m_logo" />
        <map name="m_logo" id="m_logo">
          <area shape="rect" coords="95,0,252,42" href="#" alt="Home" />
        </map>
        <!--<div id="search"> TODO
          <form action="/search/index/glsamaker2" method="get">
            <a href="/search/index/glsamaker2" accesskey="4">Search</a>:
            <input accesskey="f" class="small" id="q" name="q" size="20" type="text" />

            <select name="at">
              <option selected="selected">Everywhere</option>
              <option disabled="disabled" style="text-align: center">&mdash;&mdash;&mdash;&mdash;</option>
              <option value="glsa">GLSAs</option>
              <option value="glsa-request">&nbsp;&nbsp;Requests</option>
              <option value="glsa-draft">&nbsp;&nbsp;Drafts</option>
              <option value="glsa-sent">&nbsp;&nbsp;Archive</option>
              <option disabled="disabled" style="text-align: center">&mdash;&mdash;&mdash;&mdash;</option>
              <option disabled="disabled">Vulnerability intelligence</option>
              <option value="cve">&nbsp;&nbsp;CVEs</option>
              <option value="secunia">&nbsp;&nbsp;Secunia Advisories</option>
            </select>
          </form>
        </div>-->
        <ul>
          <li><a href="/glsa/new" class="new">New...</a></li>
          <li style="margin-right: 2em;">&nbsp;</li>
          <li><a href="/glsa/requests" class="requests">Requests</a></li>
          <li><a href="/glsa/drafts" class="drafts">Drafts</a></li>
          <li><a href="/glsa/archive" class="archive">Archive</a></li>
          
          <li style="margin-right: 2em;">&nbsp;</li>
          <li><a href="/cve/list" class="cve">CVETool</a></li>
          <% if Module.constants.include? "Secunia" %>
          <li style="margin-right: 2em;">&nbsp;</li>
          <li><a href="/" class="secunia">Secunia Advisories</a></li>
          <% end %>
        </ul>
      </div>

    <%- if flash[:notice] or flash[:error] -%>
    <div id="flash" class="<%= flash[:error] ? "error" : "notice" %>">
      <%= link_to_function(image_tag('icons/close.png'), {:style => 'float: right;', :alt => 'Hide the notification'}) do |page|
        page[:flash].drop_out
      end %>
      <img src="/assets/icons/<%= flash[:error] ? 'error' : 'info' %>.png" alt="message icon" style="vertical-align: middle" />
      <%= h flash[:error] ? flash[:error] : flash[:notice] %>
    </div>
    <%- end -%>
    <div id="content">
<%= yield %>
    </div>
    <div id="footer">
      <span><strong>GLSAMaker <%= h GLSAMAKER_VERSION %></strong></span>
      <span><%= link_to "About&hellip;".html_safe, :controller => 'index', :action => 'about' %></span>

      <span class="floatright"><strong>Administrative contact: <a href="mailto:<%= h GLSAMAKER_ADMIN_EMAIL%>"><%= h GLSAMAKER_ADMIN_EMAIL%></a></strong></span>
    </div>
    <br class="clear" />
</body>
</html>