Permalink
Browse files

updated course_requests

  • Loading branch information...
1 parent 7dd9236 commit 3cce2af85ab7ad3a5de3956c96a100327ce99b2f @hospedante hospedante committed May 27, 2012
@@ -1,29 +1,21 @@
-/*.span1*/
-/* .thumbnail Bild*/
-/*.span11*/
-/* %h1= link_to course_request.title, course_request_path(course_request)*/
-/* %h2= course_request.description*/
-
-%article.begegnung
- %a{:href => course_request_path(course_request),:class => 'begegnung-pic'}
- = image_tag("http://placehold.it/220x220", :alt => course_request.title, :size => '220x220')
- .begegnung-categories
- - course_request.categories.each do |cat|
- %span{:class => "cat-#{cat.id}"}
- .clr
- %h3= course_request.title
- %p.begegnung-infos
- =# link_to image_tag(userpic(course_request.user, :medium), :alt => username(course.user), :size => '60x60'), user_path(course.user)
- =# I18n.localize(course.date, :format => :day) unless course.date.nil?
- %br
- =# link_to truncate(username(course.user), :length => 18, :omission => '..'), user_path(course.user)
- %br
- in
- =# truncate(course.city, :length => 17, :omission => '..') unless course.city.nil?
- %br
- =# course.places_available unless course.places_available.nil?
- freie Plätze
- %p.begegnung-text
- = truncate(course_request.description, :length => 125, :omission => '..')
- %br
- = link_to "Mehr darüber", course_request_path(course_request)
+/*.span1*/
+/* .thumbnail Bild*/
+/*.span11*/
+/* %h1= link_to course_request.title, course_request_path(course_request)*/
+/* %h2= course_request.description*/
+
+%article.begegnungswunsch
+ %a{:href => course_request_path(course_request),:class => 'begegnungswunsch-title'}
+ %h3= course_request.title
+ %p.begegnung-infos
+ =# link_to image_tag(userpic(course_request.user, :medium), :alt => username(course.user), :size => '60x60'), user_path(course.user)
+ =# I18n.localize(course.date, :format => :day) unless course.date.nil?
+ %br
+ =# link_to truncate(username(course.user), :length => 18, :omission => '..'), user_path(course.user)
+ %br
+ aus
+ =# truncate(course.city, :length => 17, :omission => '..') unless course.city.nil?
+ %p.begegnung-text
+ = truncate(course_request.description, :length => 125, :omission => '..')
+ %br
+ = link_to "Mehr darüber", course_request_path(course_request)
@@ -1,11 +1,9 @@
-%p.intro Begegnungswünsche sind dazu da um etwas zu lernen, wofür noch keine passende Begegnung angeboten wird. Möchtest du einen der Wünsche erfüllen, so kannst du in der Detailansicht gleich die passende Begegnung erstellen.
-
-%section.begegnungssearch
- = render :partial => '/shared/search', :locals => {:categories => @categories}
-
-%section.begegnungen
- /*= link_to I18n.t('course_request.index.create_course_request_button'), new_course_request_path, :id => "create_course_request_button", :class => "btn"*/
- =render 'shared/begegnung'
- #courses_div
- = render :partial => 'course_request', :collection => @course_requests
- =render 'shared/begegnung_new'
+%p.intro Begegnungswünsche sind dazu da um etwas zu lernen, wofür noch keine passende Begegnung angeboten wird. Möchtest du einen der Wünsche erfüllen, so kannst du in der Detailansicht gleich die passende Begegnung erstellen.
+
+%section.begegnungssearch
+ = render :partial => '/shared/search', :locals => {:categories => @categories}
+
+%section.begegnungen
+ #courses_div
+ = render 'shared/begegnung_new'
+ = render :partial => 'course_request', :collection => @course_requests
@@ -1,11 +1,11 @@
-%h1 #{I18n.t('course_request.show.headline', :course_request_title => @course_request.title)}
-
-= @course_request.title
-= @course_request.description
-
-- if signed_in?
- = link_to I18n.t('course_request.show.provide_course_request_button'), new_course_path(:id => @course_request.id), :method => :get
- = render :partial => 'join_disjoin_buttons'
-
-= render :partial => 'members'
-
+%h1 #{I18n.t('course_request.show.headline', :course_request_title => @course_request.title)}
+
+= @course_request.title
+= @course_request.description
+
+- if signed_in?
+ = link_to I18n.t('course_request.show.provide_course_request_button'), new_course_path(:id => @course_request.id), :method => :get
+ = render :partial => 'join_disjoin_buttons'
+
+= render :partial => 'members'
+

0 comments on commit 3cce2af

Please sign in to comment.