Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraugier <christophe@c-henry.fr>2015-10-09 17:22:05 +0300
committertheworldbright <kent@kentshikama.com>2016-01-04 10:49:55 +0300
commit2c7d102019eec80b38f4aff72456aa4fa7583a06 (patch)
treeaa07aa0094c797bbb2b7caec8988d68655e4c8b3 /app/helpers
parent80cbc7d915bef972aff30a9a9d92e25b88d72397 (diff)
Design for authorization page when client_name not providen + XSS spec
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/user_applications_helper.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/helpers/user_applications_helper.rb b/app/helpers/user_applications_helper.rb
new file mode 100644
index 000000000..6fe2a7f57
--- /dev/null
+++ b/app/helpers/user_applications_helper.rb
@@ -0,0 +1,9 @@
+module UserApplicationsHelper
+ def user_application_name(app)
+ if app.name?
+ "#{app.name} (#{link_to(app.url, app.url)})"
+ else
+ link_to(app.url, app.url)
+ end
+ end
+end