summaryrefslogtreecommitdiff
path: root/app/views/phone_book_entries
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/phone_book_entries')
-rw-r--r--app/views/phone_book_entries/_index_core.de.html.haml6
-rw-r--r--app/views/phone_book_entries/_index_core.html.haml8
-rw-r--r--app/views/phone_book_entries/edit.html.haml2
-rw-r--r--app/views/phone_book_entries/index.html.haml2
-rw-r--r--app/views/phone_book_entries/new.html.haml2
-rw-r--r--app/views/phone_book_entries/show.html.haml2
-rw-r--r--app/views/phone_book_entries/show.html.haml.examlple2
7 files changed, 12 insertions, 12 deletions
diff --git a/app/views/phone_book_entries/_index_core.de.html.haml b/app/views/phone_book_entries/_index_core.de.html.haml
index 43d62f6..fe72d26 100644
--- a/app/views/phone_book_entries/_index_core.de.html.haml
+++ b/app/views/phone_book_entries/_index_core.de.html.haml
@@ -3,15 +3,15 @@
%header.entries-nav= render :partial => "phone_book_entries/navigation"
.content
- cache(['phone_book_entries_table', I18n.locale, current_user, phone_book_entries]) do
- - reset_cycle
- %table
+
+ %table{:class => 'table table-striped'}
- for entry in phone_book_entries
- cache(['phone_book_entries_table_tr', I18n.locale, current_user, entry]) do
~# Dear IE7,
~# Because of you we have to do this with a table.
~# With Love,
~# Mario.
- %tr.phone-book-entry{:class => cycle('odd', 'even'), :"itemscope itemtype" => "http://schema.org/Person"}
+ %tr.phone-book-entry{:"itemscope itemtype" => "http://schema.org/Person"}
%td.thumbnail
= image_tag(entry.image_url(:small).to_s, :itemprop => 'image')
%td.user
diff --git a/app/views/phone_book_entries/_index_core.html.haml b/app/views/phone_book_entries/_index_core.html.haml
index e98e8d5..6e35221 100644
--- a/app/views/phone_book_entries/_index_core.html.haml
+++ b/app/views/phone_book_entries/_index_core.html.haml
@@ -3,16 +3,16 @@
%header.entries-nav= render :partial => "phone_book_entries/navigation"
.content
- cache(['phone_book_entries_table', I18n.locale, current_user, phone_book_entries]) do
- - reset_cycle
- - reset_cycle
- %table
+
+
+ %table{:class => 'table table-striped'}
- for entry in phone_book_entries
- cache(['phone_book_entries_table_tr', I18n.locale, current_user, entry]) do
~# Dear IE7,
~# Because of you we have to do this with a table.
~# With Love,
~# Mario.
- %tr.phone-book-entry{:class => cycle('odd', 'even'), :"itemscope itemtype" => "http://schema.org/Person"}
+ %tr.phone-book-entry{:"itemscope itemtype" => "http://schema.org/Person"}
%td.thumbnail
= image_tag(entry.image_url(:small).to_s, :itemprop => 'image')
%td.user
diff --git a/app/views/phone_book_entries/edit.html.haml b/app/views/phone_book_entries/edit.html.haml
index d4fad4d..2967366 100644
--- a/app/views/phone_book_entries/edit.html.haml
+++ b/app/views/phone_book_entries/edit.html.haml
@@ -1,4 +1,4 @@
-- title t("phone_book_entries.edit.page_title")
+- content_for :title, t("phone_book_entries.edit.page_title")
= render "form"
diff --git a/app/views/phone_book_entries/index.html.haml b/app/views/phone_book_entries/index.html.haml
index 6a17eb9..10d1ce2 100644
--- a/app/views/phone_book_entries/index.html.haml
+++ b/app/views/phone_book_entries/index.html.haml
@@ -1,4 +1,4 @@
-- title t("phone_book_entries.index.page_title")
+- content_for :title, t("phone_book_entries.index.page_title")
- if @phone_books
%p
diff --git a/app/views/phone_book_entries/new.html.haml b/app/views/phone_book_entries/new.html.haml
index d72d1a4..2f3a8be 100644
--- a/app/views/phone_book_entries/new.html.haml
+++ b/app/views/phone_book_entries/new.html.haml
@@ -1,3 +1,3 @@
-- title t("phone_book_entries.new.page_title")
+- content_for :title, t("phone_book_entries.new.page_title")
= render "form"
diff --git a/app/views/phone_book_entries/show.html.haml b/app/views/phone_book_entries/show.html.haml
index ff43b8a..7dd9bcb 100644
--- a/app/views/phone_book_entries/show.html.haml
+++ b/app/views/phone_book_entries/show.html.haml
@@ -1,4 +1,4 @@
-- title nil
+- content_for :title, nil
%section.phone-book-entry
.content
diff --git a/app/views/phone_book_entries/show.html.haml.examlple b/app/views/phone_book_entries/show.html.haml.examlple
index 176ad04..980f776 100644
--- a/app/views/phone_book_entries/show.html.haml.examlple
+++ b/app/views/phone_book_entries/show.html.haml.examlple
@@ -1,4 +1,4 @@
-- title nil
+- content_for :title, nil
%section.phone-book-entry
.content