Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[webui] Replace ERB templates with HAML for webui/notifications contr…
…oller
- Loading branch information
Moises Deniz Aleman
committed
Mar 9, 2017
1 parent
8cb06cb
commit 4f9e7be
Showing
10 changed files
with
42 additions
and
61 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
%h3 Events to get email for ... | ||
- @notifications.each do |type| | ||
= field_set_tag type.description do | ||
%ul.horizontal-list | ||
- type.receiver_roles.each do |role| | ||
%li | ||
= check_box_tag "#{type}[#{role}]", '1', EventSubscription.subscription_value(type.to_s, role, @user) | ||
= label_tag "#{type}[#{role}]", role |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
- @pagetitle = 'Global Notification Settings' | ||
- @crumb_list = [ @pagetitle ] | ||
- @layouttype = 'custom' | ||
.grid_16.alpha.omega.box.box-shadow | ||
= render partial: 'webui/configuration/tabs' | ||
%p= @pagetitle | ||
= form_tag(bulk_update_notifications_path, { method: :patch, id: 'notification_form'}) do | ||
= render partial: 'roles' | ||
%p= submit_tag 'Update' |
23 changes: 0 additions & 23 deletions
23
src/api/app/views/webui/theme/bento/layouts/webui/_header.html.erb
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
src/api/app/views/webui/theme/bento/layouts/webui/_header.html.haml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/ Start: Header | ||
#header | ||
#header-content.container_12 | ||
= link_to sprite_tag( "header-logo" ), root_path, { id: "header-logo" } | ||
%ul#global-navigation | ||
%li#item-downloads | ||
%a{href: "http://en.opensuse.org/openSUSE:Browse#Downloads" } Downloads | ||
%li#item-support | ||
%a{ href: "http://en.opensuse.org/openSUSE:Browse#Support" } Support | ||
%li#item-community | ||
%a{ href: "http://en.opensuse.org/openSUSE:Browse#Community" } Community | ||
%li#item-development | ||
%a{ href: "http://en.opensuse.org/openSUSE:Browse#Development" } Development | ||
- unless User.current.is_nobody? | ||
%li#item-favorites{ style: "float: right;" } | ||
%a{ href: "#{user_show_url(User.current)}" } Watchlist | ||
= render partial: "layouts/webui/watch_and_search" |
5 changes: 0 additions & 5 deletions
5
src/api/app/views/webui/theme/bento/webui/package/_extra_actions.html.erb
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
src/api/app/views/webui/theme/bento/webui/package/_extra_actions.html.haml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- if CONFIG['software_opensuse_url'] | ||
%li | ||
= sprite_tag 'application_get' | ||
%a{ href: "#{CONFIG['software_opensuse_url']}/download.html?project=#{u @project.name}&package=#{u @package.name}" } Download package |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
%h1 Timeout occurred | ||
%p | ||
We're sorry but the system is currently not able to handle your request | ||
in a reasonable time. Please try again later. |