From 466425c947f1eae5dc25e84095e22558bbdc7972 Mon Sep 17 00:00:00 2001 From: Michel Etienne Date: Fri, 13 Apr 2012 16:58:04 +0200 Subject: set labels for show --- app/views/companies/show.html.erb | 8 ++++++++ app/views/networks/show.html.erb | 8 ++++++++ app/views/stop_areas/show.html.erb | 2 +- app/views/time_tables/show.html.erb | 8 ++------ 4 files changed, 19 insertions(+), 7 deletions(-) (limited to 'app') diff --git a/app/views/companies/show.html.erb b/app/views/companies/show.html.erb index 09a54e98b..16d104969 100644 --- a/app/views/companies/show.html.erb +++ b/app/views/companies/show.html.erb @@ -43,6 +43,14 @@ <%= @company.objectid %>

+

+ + <%= @company.creation_time %> +

+

+ + <%= @company.creator_id %> +

diff --git a/app/views/networks/show.html.erb b/app/views/networks/show.html.erb index e33ecbcf9..6822cf41e 100644 --- a/app/views/networks/show.html.erb +++ b/app/views/networks/show.html.erb @@ -35,6 +35,14 @@ <%= @network.objectid %>

+

+ + <%= @network.creation_time %> +

+

+ + <%= @network.creator_id %> +

diff --git a/app/views/stop_areas/show.html.erb b/app/views/stop_areas/show.html.erb index 27ce46880..108a69a2b 100644 --- a/app/views/stop_areas/show.html.erb +++ b/app/views/stop_areas/show.html.erb @@ -35,7 +35,7 @@ <%= t("area_types.label.#{@stop_area.type}") %>

-

<%= t('stop_areas.show.geographic_data') %>

+

<% if @stop_area.projectiontype == nil && @stop_area.longlattype == nil %> <%= t('stop_areas.show.no_geographic_data') %> <% else %> diff --git a/app/views/time_tables/show.html.erb b/app/views/time_tables/show.html.erb index d556d88e7..5fe52a3af 100644 --- a/app/views/time_tables/show.html.erb +++ b/app/views/time_tables/show.html.erb @@ -94,20 +94,16 @@

- -

<%= render :partial => "period", :collection => @time_table.periods %> -
-
+

<%= render :partial => "date", :collection => @time_table.dates %> -
-
+

<%= @time_table.objectid %> -- cgit v1.2.3 From fbedb1806047513455f0c54c71e841e3c6a1d623 Mon Sep 17 00:00:00 2001 From: Alban Peignier Date: Fri, 13 Apr 2012 17:44:39 +0200 Subject: First devise integration. Refs #7 --- app/controllers/application_controller.rb | 2 +- app/models/user.rb | 9 +++++++++ app/views/layouts/_user_links.erb | 8 ++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 app/models/user.rb (limited to 'app') diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 7050568de..ae953a25a 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,4 +1,4 @@ class ApplicationController < ActionController::Base protect_from_forgery - + before_filter :authenticate_user! end diff --git a/app/models/user.rb b/app/models/user.rb new file mode 100644 index 000000000..b2f7c8ec9 --- /dev/null +++ b/app/models/user.rb @@ -0,0 +1,9 @@ +class User < ActiveRecord::Base + # Include default devise modules. Others available are: + # :token_authenticatable, :encryptable, :confirmable, :lockable, :timeoutable and :omniauthable + devise :database_authenticatable, :registerable, + :recoverable, :rememberable, :trackable, :validatable + + # Setup accessible (or protected) attributes for your model + attr_accessible :email, :password, :password_confirmation, :remember_me +end diff --git a/app/views/layouts/_user_links.erb b/app/views/layouts/_user_links.erb index 41d01375c..f82d4d7b4 100644 --- a/app/views/layouts/_user_links.erb +++ b/app/views/layouts/_user_links.erb @@ -1,5 +1,13 @@