Skip to content

Commit 7902825

Browse files
Added main menu with links for current month and file upload
1 parent e985548 commit 7902825

File tree

3 files changed

+40
-1
lines changed

3 files changed

+40
-1
lines changed

app/Resources/views/base.html.twig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@
1414
<link type="text/css" href="/css/ui-lightness/jquery-ui-1.8.16.custom.css" rel="stylesheet" />
1515
</head>
1616
<body>
17+
<nav>
18+
<ul>
19+
<li><a href="{{path('stats_stats_list') }}">{{'Current month'|trans}}</a></li>
20+
<li><a href="{{path('stats_stats_select_file') }}">{{'Upload new statistics'|trans}}</a></li>
21+
</ul>
22+
</nav>
23+
1724
<div id="main">
1825
{% block container %}{% endblock %}
1926
</div>

src/Stats/BankBundle/Component/Date/DateRange.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function withFirstDay($month, $year)
1717
{
1818
$this->checkMonth($month);
1919

20-
return new \DateTime("2011-$month-01");
20+
return new \DateTime("$year-$month-01");
2121
}
2222

2323
/**

src/Stats/BankBundle/Resources/less/stats.less

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,38 @@ body {
33
margin: 20px;
44
}
55

6+
nav
7+
{
8+
float: left;
9+
width: 93%;
10+
margin: 5px 20px 20px 20px;
11+
border-radius: 15px 15px 15px 15px;
12+
background: #3B3C3C;
13+
14+
ul
15+
{
16+
li
17+
{
18+
list-style-type: none;
19+
display: inline;
20+
margin-right: 10px;
21+
22+
a
23+
{
24+
color: white;
25+
text-decoration: none;
26+
27+
&:hover
28+
{
29+
text-decoration: underline;
30+
}
31+
}
32+
33+
}
34+
}
35+
}
36+
37+
638
#main
739
{
840
float: left;

0 commit comments

Comments
 (0)