Skip to content

Commit

Permalink
[webui] Replace ERB templates with HAML for webui/notifications contr…
Browse files Browse the repository at this point in the history
…oller
  • Loading branch information
Moises Deniz Aleman committed Mar 9, 2017
1 parent 8cb06cb commit 4f9e7be
Show file tree
Hide file tree
Showing 10 changed files with 42 additions and 61 deletions.
14 changes: 0 additions & 14 deletions src/api/app/views/webui/notifications/_roles.html.erb

This file was deleted.

8 changes: 8 additions & 0 deletions src/api/app/views/webui/notifications/_roles.html.haml
@@ -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
15 changes: 0 additions & 15 deletions src/api/app/views/webui/notifications/index.html.erb

This file was deleted.

9 changes: 9 additions & 0 deletions src/api/app/views/webui/notifications/index.html.haml
@@ -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 src/api/app/views/webui/theme/bento/layouts/webui/_header.html.erb

This file was deleted.

@@ -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"

This file was deleted.

@@ -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
4 changes: 0 additions & 4 deletions src/api/app/views/webui/timeout.html.erb

This file was deleted.

4 changes: 4 additions & 0 deletions src/api/app/views/webui/timeout.html.haml
@@ -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.

0 comments on commit 4f9e7be

Please sign in to comment.