quickapps_feedback 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/quickapps_feedback.rb +2 -2
- data/lib/quickapps_feedback/version.rb +1 -1
- data/lib/views/layout.erb +3 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02a9e6742f210d4e468d56ef46ca8e90cf7bbfd3
|
4
|
+
data.tar.gz: 7402475e08f997fcb9cb9c40314189af633ac7d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50daa4c964f046d7e7831f14f12bd53b4b2d0e29eaf2822b8531e99b16551d245551c895752771b436806db9c67fb961e6ac577a1e175ce73286baf5a9185e9f
|
7
|
+
data.tar.gz: 029a9371ccbc4ab92ad49f2e08a0467cd4f8e26e8fd9329e8ddeed6721b1887ca511c490ee7f1828596eb2ae97e66f547f1998dbb197733ef0dca9e5051c0e28
|
data/lib/quickapps_feedback.rb
CHANGED
@@ -16,8 +16,8 @@ module QuickappsFeedback
|
|
16
16
|
feedback = Feedback.new(request.env['HTTP_X_MXIT_USERID_R'] || session[:uid],
|
17
17
|
params[:full_message],params[:support_type])
|
18
18
|
SendFeedbackToUservoice.new.perform(feedback)
|
19
|
-
flash[:notice] = 'thank you for your feedback'
|
20
|
-
redirect to('/')
|
19
|
+
flash('feedback_flash')[:notice] = 'thank you for your feedback'
|
20
|
+
redirect to('/feedback')
|
21
21
|
end
|
22
22
|
|
23
23
|
get '/feedback/new' do
|
data/lib/views/layout.erb
CHANGED
@@ -7,17 +7,15 @@
|
|
7
7
|
<link href="/assets/application.css" media="all" rel="stylesheet" />
|
8
8
|
</head>
|
9
9
|
<body class="ui-page-active">
|
10
|
-
<% if flash[:notice] %>
|
11
|
-
<div class="alert alert-info" style="color:#00008b;"><%= flash[:notice] %></div>
|
12
|
-
<% elsif flash[:alert] %>
|
13
|
-
<div class="alert alert-block" style="color:#8b0000;"><%= flash[:alert] %></div>
|
10
|
+
<% if flash('feedback_flash')[:notice] %>
|
11
|
+
<div class="alert alert-info" style="color:#00008b;"><%= flash('feedback_flash')[:notice] %></div>
|
14
12
|
<% end %>
|
15
13
|
|
16
14
|
<%= yield %>
|
17
15
|
|
18
16
|
<ul>
|
19
17
|
<li>
|
20
|
-
<a href="/" id="home">
|
18
|
+
<a href="/" id="home">back</a>
|
21
19
|
</li>
|
22
20
|
</ul>
|
23
21
|
</body>
|