Skip to content

Commit

Permalink
Update hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
steveyken committed Aug 19, 2014
1 parent 5bf0391 commit bba37ca
Show file tree
Hide file tree
Showing 37 changed files with 43 additions and 42 deletions.
4 changes: 2 additions & 2 deletions app/views/accounts/_index_brief.html.haml 100644 → 100755
Expand Up @@ -6,7 +6,7 @@
.strip{:style => "color: gray;"} #{t :other}

%ul.tools
= hook(:account_tools_before, self, :account => account)
= hook(:account_tools_before, self, :account => account) {}

- if can?(:update, account)
%li= link_to_edit(account)
Expand All @@ -29,4 +29,4 @@
= t('pluralize.contact', account.contacts.count) << " | "
= t('pluralize.opportunity', account.opportunities.count)

= hook(:account_bottom, self, :account => account)
= hook(:account_bottom, self, :account => account) {}
4 changes: 2 additions & 2 deletions app/views/accounts/_index_long.html.haml 100644 → 100755
Expand Up @@ -6,7 +6,7 @@
.strip{:style => "color: gray;"} #{t :other}

%ul.tools
= hook(:account_tools_before, self, :account => account)
= hook(:account_tools_before, self, :account => account) {}

- if can?(:update, account)
%li= link_to_edit(account)
Expand Down Expand Up @@ -39,4 +39,4 @@
%dt
.tags= tags_for_index(account)

= hook(:account_bottom, self, :account => account)
= hook(:account_bottom, self, :account => account) {}
2 changes: 1 addition & 1 deletion app/views/accounts/_sidebar_index.html.haml 100644 → 100755
Expand Up @@ -17,4 +17,4 @@
%div{:style => "float:right;"}
%b= @account_category_total[:all]
%b #{t :total_accounts}
= hook(:index_account_sidebar_bottom, self)
= hook(:index_account_sidebar_bottom, self) {}
2 changes: 1 addition & 1 deletion app/views/accounts/_sidebar_show.html.haml 100644 → 100755
Expand Up @@ -54,4 +54,4 @@
%dt
.tags= tags_for_index(@account)

= hook(:show_account_sidebar_bottom, self, :account => @account)
= hook(:show_account_sidebar_bottom, self, :account => @account {}
2 changes: 1 addition & 1 deletion app/views/accounts/_top_section.html.haml 100644 → 100755
Expand Up @@ -26,4 +26,4 @@

= render :partial => "/shared/tags", :locals => {:f => f, :span => 3}

= hook(:account_top_section_bottom, self, :f => f)
= hook(:account_top_section_bottom, self, :f => f) {}
2 changes: 1 addition & 1 deletion app/views/admin/fields/_field.html.haml 100644 → 100755
Expand Up @@ -12,6 +12,6 @@
== (#{t("field_types.#{field.as}.title")})

= t(:added_ago, value: timeago(field.created_at)).html_safe
= hook(:field_bottom, self, :field => field)
= hook(:field_bottom, self, :field => field) {}

.edit_field
2 changes: 1 addition & 1 deletion app/views/admin/fields/show.html.haml 100644 → 100755
Expand Up @@ -38,4 +38,4 @@
%b
= @field.updated_at.to_s

= hook(:show_field_bottom, self)
= hook(:show_field_bottom, self) {}
2 changes: 1 addition & 1 deletion app/views/campaigns/_index_brief.html.haml 100644 → 100755
Expand Up @@ -12,4 +12,4 @@
= link_to(campaign.name, campaign)
= render "campaigns/status", :campaign => campaign

= hook(:campaign_bottom, self, :campaign => campaign)
= hook(:campaign_bottom, self, :campaign => campaign) {}
2 changes: 1 addition & 1 deletion app/views/campaigns/_index_long.html.haml 100644 → 100755
Expand Up @@ -17,4 +17,4 @@
%dt
.tags= tags_for_index(campaign)

= hook(:campaign_bottom, self, :campaign => campaign)
= hook(:campaign_bottom, self, :campaign => campaign) {}
2 changes: 1 addition & 1 deletion app/views/campaigns/_sidebar_index.html.haml 100644 → 100755
Expand Up @@ -17,4 +17,4 @@
%div{:style => "float:right;"}
%b= @campaign_status_total[:all]
%b #{t :total_campaigns}
= hook(:index_campaign_sidebar_bottom, self)
= hook(:index_campaign_sidebar_bottom, self) {}
2 changes: 1 addition & 1 deletion app/views/campaigns/_sidebar_show.html.haml 100644 → 100755
Expand Up @@ -88,4 +88,4 @@
%dt
.tags= tags_for_index(@campaign)

= hook(:show_campaign_sidebar_bottom, self, :campaign => @campaign)
= hook(:show_campaign_sidebar_bottom, self, :campaign => @campaign) {}
2 changes: 1 addition & 1 deletion app/views/campaigns/_top_section.html.haml 100644 → 100755
Expand Up @@ -26,4 +26,4 @@

= render :partial => "/shared/tags", :locals => {:f => f, :span => 5}

= hook(:campaign_top_section_bottom, self, :f => f)
= hook(:campaign_top_section_bottom, self, :f => f) {}
4 changes: 2 additions & 2 deletions app/views/contacts/_index_brief.html.haml 100644 → 100755
Expand Up @@ -2,7 +2,7 @@
= avatar_for(contact, :size => "16x16")

%ul.tools
= hook(:contact_tools_before, self, :contact => contact)
= hook(:contact_tools_before, self, :contact => contact {}

- if can?(:update, contact)
%li= link_to_edit(contact)
Expand All @@ -22,4 +22,4 @@
&ndash;
== #{t :referred_by_small} #{lead.referred_by}

= hook(:contact_bottom, self, :contact => contact)
= hook(:contact_bottom, self, :contact => contact) {}
4 changes: 2 additions & 2 deletions app/views/contacts/_index_full.html.haml 100644 → 100755
Expand Up @@ -2,7 +2,7 @@
= avatar_for(contact, :size => "30x30")

%ul.tools
= hook(:contact_tools_before, self, :contact => contact)
= hook(:contact_tools_before, self, :contact => contact {}

- if can?(:update, contact)
%li= link_to_edit(contact)
Expand Down Expand Up @@ -46,7 +46,7 @@
%dt
.tags= tags_for_index(contact)

= hook(:contact_bottom, self, :contact => contact)
= hook(:contact_bottom, self, :contact => contact) {}

%dt{ :style => "padding: 2px 0px 0px 0px" }
- if can?(:read, contact)
Expand Down
4 changes: 2 additions & 2 deletions app/views/contacts/_index_long.html.haml 100644 → 100755
Expand Up @@ -2,7 +2,7 @@
= avatar_for(contact, :size => "30x30")

%ul.tools
= hook(:contact_tools_before, self, :contact => contact)
= hook(:contact_tools_before, self, :contact => contact) {}

- if can?(:update, contact)
%li= link_to_edit(contact)
Expand Down Expand Up @@ -41,4 +41,4 @@
%dt
.tags= tags_for_index(contact)

= hook(:contact_bottom, self, :contact => contact)
= hook(:contact_bottom, self, :contact => contact) {}
2 changes: 1 addition & 1 deletion app/views/contacts/_sidebar_show.html.haml 100644 → 100755
Expand Up @@ -49,4 +49,4 @@
%dt
.tags= tags_for_index(@contact)

= hook(:show_contact_sidebar_bottom, self, :contact => @contact)
= hook(:show_contact_sidebar_bottom, self, :contact => @contact) {}
2 changes: 1 addition & 1 deletion app/views/contacts/_top_section.html.haml 100644 → 100755
Expand Up @@ -42,4 +42,4 @@

= render :partial => "/shared/tags", :locals => {:f => f, :span => 3}

= hook(:contact_top_section_bottom, self, :f => f)
= hook(:contact_top_section_bottom, self, :f => f) {}
2 changes: 1 addition & 1 deletion app/views/home/_account.html.haml 100644 → 100755
Expand Up @@ -26,4 +26,4 @@
- if account.tags.any?
%dt
.tags= tags_for_dashboard(account)
= hook(:account_bottom, self, :account => account)
= hook(:account_bottom, self, :account => account) {}
2 changes: 1 addition & 1 deletion app/views/home/_opportunity.html.haml 100644 → 100755
Expand Up @@ -38,4 +38,4 @@
- if opportunity.tags.any?
%dt
.tags= tags_for_dashboard(opportunity)
= hook(:opportunity_bottom, self, :opportunity => opportunity)
= hook(:opportunity_bottom, self, :opportunity => opportunity {}
2 changes: 1 addition & 1 deletion app/views/layouts/admin/application.html.haml
Expand Up @@ -9,7 +9,7 @@
%style= yield :styles
= javascript_include_tag :application
= hook(:javascript_includes, self)
= hook(:javascript_includes, self) {}
%script{:type => "text/javascript"}= yield :javascript
= csrf_meta_tag
Expand Down
4 changes: 2 additions & 2 deletions app/views/layouts/application.html.haml 100644 → 100755
Expand Up @@ -17,7 +17,7 @@
= javascript_include_tag "jquery_ui_datepicker/jquery-ui-timepicker-#{I18n.locale}"

= csrf_meta_tag
= hook(:javascript_includes, self)
= hook(:javascript_includes, self) {}

:javascript
crm.language = "#{I18n.locale}"
Expand Down Expand Up @@ -45,4 +45,4 @@
= "crm.base_url = '#{Setting.base_url}';" unless Setting.base_url.blank?
= get_browser_timezone_offset
= content_for :javascript_epilogue
= hook(:javascript_epilogue, self)
= hook(:javascript_epilogue, self) {}
2 changes: 1 addition & 1 deletion app/views/leads/_index_brief.html.haml 100644 → 100755
Expand Up @@ -38,4 +38,4 @@
&ndash;
== #{t :referred_by_small} #{lead.referred_by}

= hook(:lead_bottom, self, :lead => lead)
= hook(:lead_bottom, self, :lead => lead) {}
2 changes: 1 addition & 1 deletion app/views/leads/_index_long.html.haml 100644 → 100755
Expand Up @@ -59,4 +59,4 @@
%dt
.tags= tags_for_index(lead)

= hook(:lead_bottom, self, :lead => lead)
= hook(:lead_bottom, self, :lead => lead) {}
2 changes: 1 addition & 1 deletion app/views/leads/_sidebar_index.html.haml 100644 → 100755
Expand Up @@ -17,4 +17,4 @@
%div{:style => "float:right;"}
%b= @lead_status_total[:all]
%b #{t :total_leads}
= hook(:index_lead_sidebar_bottom, self)
= hook(:index_lead_sidebar_bottom, self) {}
2 changes: 1 addition & 1 deletion app/views/leads/_sidebar_show.html.haml 100644 → 100755
Expand Up @@ -62,4 +62,4 @@
%dt
.tags= tags_for_index(@lead)

= hook(:show_lead_sidebar_bottom, self, :lead => @lead)
= hook(:show_lead_sidebar_bottom, self, :lead => @lead) {}
2 changes: 1 addition & 1 deletion app/views/leads/_top_section.html.haml 100644 → 100755
Expand Up @@ -27,4 +27,4 @@

= render :partial => "/shared/tags", :locals => {:f => f, :span => 3}

= hook(:lead_top_section_bottom, self, :f => f)
= hook(:lead_top_section_bottom, self, :f => f) {}
1 change: 1 addition & 0 deletions app/views/opportunities/_edit.html.haml 100644 → 100755
Expand Up @@ -10,6 +10,7 @@
= render "fields/edit_custom_field_group", :f => f, :edit => true
= render "fields/groups", :f => f, :edit => true
= render "entities/permissions", :f => f, :edit => true, :entity => @opportunity
= hook(:opportunity_form_section, self, :f => f) {}

.buttonbar
= f.submit t(:save_opportunity), :onclick => %/$("#account_assigned_to").val($("#opportunity_assigned_to").val());/
Expand Down
2 changes: 1 addition & 1 deletion app/views/opportunities/_index_brief.html.haml 100644 → 100755
Expand Up @@ -26,4 +26,4 @@
- else
= t(:added_ago, :value => timeago(opportunity.created_at)).html_safe

= hook(:opportunity_bottom, self, :opportunity => opportunity)
= hook(:opportunity_bottom, self, :opportunity => opportunity) {}
2 changes: 1 addition & 1 deletion app/views/opportunities/_index_long.html.haml 100644 → 100755
Expand Up @@ -56,4 +56,4 @@
%dt
.tags= tags_for_index(opportunity)

= hook(:opportunity_bottom, self, :opportunity => opportunity)
= hook(:opportunity_bottom, self, :opportunity => opportunity) {}
2 changes: 1 addition & 1 deletion app/views/opportunities/_sidebar_index.html.haml 100644 → 100755
Expand Up @@ -17,4 +17,4 @@
%div{:style => "float:right;"}
%b= @opportunity_stage_total[:all]
%b #{t :total_opportunities}
= hook(:index_opportunity_sidebar_bottom, self)
= hook(:index_opportunity_sidebar_bottom, self) {}
2 changes: 1 addition & 1 deletion app/views/opportunities/_sidebar_show.html.haml 100644 → 100755
Expand Up @@ -58,4 +58,4 @@
%dt
.tags= tags_for_index(@opportunity)

= hook(:show_opportunity_sidebar_bottom, self, :opportunity => @opportunity)
= hook(:show_opportunity_sidebar_bottom, self, :opportunity => @opportunity) {}
2 changes: 1 addition & 1 deletion app/views/opportunities/_top_section.html.haml 100644 → 100755
Expand Up @@ -56,4 +56,4 @@

= render :partial => "/shared/tags", :locals => {:f => f, :span => 3}

= hook(:opportunity_top_section_bottom, self, :f => f)
= hook(:opportunity_top_section_bottom, self, :f => f) {}
2 changes: 1 addition & 1 deletion app/views/opportunities/index.html.haml 100644 → 100755
Expand Up @@ -17,4 +17,4 @@
#paginate= render "shared/paginate_with_per_page"
#export= render "shared/export"

= hook(:opportunity_index_after, self)
= hook(:opportunity_index_after, self) {}
2 changes: 1 addition & 1 deletion app/views/shared/_inline_styles.html.haml 100644 → 100755
Expand Up @@ -27,5 +27,5 @@
li.user .active { background: lightgreen; }
li.user .signed_up { background: lightsalmon; }

= hook(:inline_styles, self, local_assigns)
= hook(:inline_styles, self, local_assigns) {}

2 changes: 1 addition & 1 deletion app/views/tasks/_top_section.html.haml 100644 → 100755
Expand Up @@ -31,4 +31,4 @@
.label= t(:extra_info).capitalize << ':'
= f.text_area :background_info, :style =>"width:500px", :rows => 3

= hook(:task_top_section_bottom, self, :f => f)
= hook(:task_top_section_bottom, self, :f => f) {}
2 changes: 1 addition & 1 deletion app/views/users/_profile.html.haml 100644 → 100755
Expand Up @@ -63,5 +63,5 @@
#{t :or}
= link_to_cancel edit_user_path(@user)

= hook(:profile_user_bottom, self)
= hook(:profile_user_bottom, self) {}
%br
2 changes: 1 addition & 1 deletion app/views/users/show.html.haml 100644 → 100755
Expand Up @@ -10,6 +10,6 @@

.list#profile= render "user"

= hook(:show_user_bottom, self)
= hook(:show_user_bottom, self) {}

%iframe#uploading{ :name => "uploading", :style => "width:100px; height:10px; border:5px" }

0 comments on commit bba37ca

Please sign in to comment.