Skip to content

Commit

Permalink
Merge branch 'master' of git@github.com:paneq/manage-my-money
Browse files Browse the repository at this point in the history
  • Loading branch information
paneq committed Apr 15, 2009
2 parents dbce6c1 + 6008d30 commit f1d22c3
Show file tree
Hide file tree
Showing 10 changed files with 60 additions and 12 deletions.
6 changes: 6 additions & 0 deletions app/controllers/static_controller.rb
@@ -0,0 +1,6 @@
class StaticController < ApplicationController

def terms
end

end
2 changes: 1 addition & 1 deletion app/helpers/application_helper.rb
Expand Up @@ -165,7 +165,7 @@ def will_paginate_with_i18n(collection, options = {})
def help_tag(a_id, title = 'Pomoc')
result = <<-HTML
<span class="help" title="#{title}">
<a href="/help/help.html##{a_id}" target="_blank">
<a href="/help/help.html##{a_id}" target="_blank" tabindex="-1">
<img alt="Pomoc" src="/images/icon_help.png" style="vertical-align: top;"/>
</a>
</span>
Expand Down
4 changes: 2 additions & 2 deletions app/views/layouts/application.html.erb
Expand Up @@ -49,8 +49,8 @@
<div id="bg" class="width">
<ul>
<li><a href="/help/help.html">Pomoc</a></li>
<li><a href="/help/help.html#faq">FAQ</a></li>
<li><a href="/terms.html" class="last">Regulamin</a></li>
<li><%= link_to("O nas", static_url(:action => "authors"))%></li>
<li><%= link_to("Regulamin", static_url(:action => "terms"), :class => 'last')%></li>
</ul>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions app/views/shared/_bottom_sidebar.html.erb
@@ -1,6 +1,6 @@
<div id="bottom-sidebar">

<% cache("#{@current_user.id}-quick-categories") do %>
<% cache("#{self.current_user.id}-quick-categories") do %>
<p>
<%= help_tag('system_elements.other.quick_access') %>
<b>
Expand Down Expand Up @@ -28,7 +28,7 @@
</form>

<div id="categories-sidebar">
<% @current_user.categories.each do |c| %>
<% self.current_user.categories.each do |c| %>
<%= link_to "#{c.name} <br />",
category_path(c) ,
obj_hash_id('category-in-menu', c).merge(
Expand Down
7 changes: 7 additions & 0 deletions app/views/static/authors.html.erb
@@ -0,0 +1,7 @@
<div style="margin: 40px; font-size:150%">

<h2>O nas</h2>
<p>
Jesteśmy studentami</p>

</div>
31 changes: 31 additions & 0 deletions app/views/static/terms.html.erb
@@ -0,0 +1,31 @@
<div style="margin: 40px; font-size:150%">

<h2>Regulamin</h2>
<p>
Obecna wersja systemu to <b>Live Demo</b>, obowiązują w niej takie zasady:</p>
<ul class="terms">
<li>możesz dowolnie używać serwisu</li>
<li>nie będziemy udawać, że nas obchodzi że Ci nie działa ;) (aczkolwiek błędy można
zgłaszać na <a href="http://3m.lighthouseapp.com/projects/28121-manage-my-money">lighthouse</a>, poza tym zrobimy co <b>w naszej mocy</b> by aplikacja była jak
najlepsza)</li>
<li>nie bierzemy żadnej odpowiedzialności za działanie serwisu</li>
<li>możemy wyłączyć serwis w każdej chwili, jeśli nam się znudzi
hostowanie go (lub zabraknie nam funduszy)</li>
<li>to jest tylko pokaz możliwości systemu manage-my-money którego źródła dostępne są na
<a href="http://github.com/paneq/manage-my-money">github</a></li>
<li>działalność serwisu ma charakter non-profit</li>
</ul>

<p>
Są plany byśmy byli prawdziwym serwisem:</p>
<ul class="terms">
<li>będziesz mógł sobie klikać tam, gdzie Ci pozwolimy</li>
<li>udamy, że nas obchodzi że Ci nie działa :)</li>
<li>weźmiemy odpowiedzialność, za.... za to żeby serwis był raczej włączony</li>
<li>nie wyłączymy tego gdy nam się znudzi. Gdyby tak się stało damy info
dużo wcześniej i pozwolimy Ci zabrać swoje dane!</li>
<li>będziemy działać totalnie for-profit</li>
</ul>


</div>
3 changes: 3 additions & 0 deletions app/views/users/new.html.erb
Expand Up @@ -16,5 +16,8 @@
<p><%= f.label :password_confirmation, 'Potwierdź hasło' %>
<%= f.password_field :password_confirmation %><%= help_tag 'system_elements.user.new.password_confirmation' %></p>


<p>Rejestrując się w serwisie potwierdzasz, że zapoznałeś się z <%= link_to "regulaminem", static_url(:action => "terms")%>
</p>
<p><%= submit_tag 'Zarejestruj mnie' %></p>
<% end -%>
1 change: 1 addition & 0 deletions config/routes.rb
Expand Up @@ -88,6 +88,7 @@
map.exchanges_list '/exchanges/:left_currency/:right_currency', :controller => 'exchanges', :action => 'list'


map.static '/static/:action', :controller => 'static'
# Install the default routes as the lowest priority.
map.connect ':controller/:action/:id'
map.connect ':controller/:action/:id.:format'
Expand Down
7 changes: 7 additions & 0 deletions public/stylesheets/layout.css
Expand Up @@ -829,3 +829,10 @@ div.auto_complete ul strong.highlight {
vertical-align: top;
text-decoration:none;
}


ul.terms li {
margin-bottom: 7px;
}


7 changes: 0 additions & 7 deletions public/terms.html

This file was deleted.

0 comments on commit f1d22c3

Please sign in to comment.