Skip to content

Commit

Permalink
Merge pull request #46 from hugodias/dev
Browse files Browse the repository at this point in the history
Removed useless code in dashboard and added footer
  • Loading branch information
hugodias committed Apr 30, 2016
2 parents 67605bf + c65daa1 commit a107958
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 21 deletions.
9 changes: 1 addition & 8 deletions app/assets/stylesheets/dashboard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
}

.main {
padding: 50px 20px;
padding: 50px 0;

.page-header {
margin-top: 0;
Expand All @@ -16,13 +16,6 @@
}
}

@media (min-width: 768px) {
.main {
padding-right: 40px;
padding-left: 40px;
}
}

.stats {
margin-bottom: 30px;
text-align: center;
Expand Down
3 changes: 3 additions & 0 deletions app/views/dashboard/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

<div class="row stats">
<div class="col-xs-12 col-sm-4 stat">
<div class="card">
Expand All @@ -24,6 +25,8 @@
</div>
</div>
</div>


<h2 class="sub-header">Aguardando aprovação</h2>

<div class="card">
Expand Down
8 changes: 8 additions & 0 deletions app/views/layouts/_footer.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<footer class="footer">
<div class="container">
<p class="text-muted pull-left">© 2016 San Pedro Valley Jobs </p>

<p class="text-muted pull-right">Fork me on <a href="https://github.com/hugodias/san-pedro-valley-jobs" class="link-accent" target="_blank">Github</a>!</p>
<div class="clearfix"></div>
</div>
</footer>
9 changes: 1 addition & 8 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,6 @@
<%= render 'layouts/navigation' %>
<div class="clearfix"></div>
<%= yield %>
<footer class="footer">
<div class="container">
<p class="text-muted pull-left">© 2016 San Pedro Valley Jobs </p>

<p class="text-muted pull-right">Fork me on <a href="https://github.com/hugodias/san-pedro-valley-jobs" class="link-accent" target="_blank">Github</a>!</p>
<div class="clearfix"></div>
</div>
</footer>
<%= render 'layouts/footer' %>
</body>
</html>
9 changes: 4 additions & 5 deletions app/views/layouts/dashboard.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@
<body class="<%= curr_page %>">
<%= render 'layouts/messages' %>
<%= render 'layouts/navigation' %>
<div class="clearfix"></div>
<div class="container">
<div class="row">
<div class="col-md-12 main">

<%= yield %>
</div>
<div class="main">
<%= yield %>
</div>
</div>
<%= render 'layouts/footer' %>
</body>
</html>

0 comments on commit a107958

Please sign in to comment.