diff --git a/app/layout/aside_flux.phtml b/app/layout/aside_flux.phtml
index 5ac86db96..8928ffca0 100644
--- a/app/layout/aside_flux.phtml
+++ b/app/layout/aside_flux.phtml
@@ -70,29 +70,15 @@
get_f == $feed->id ()) { $f_active = true; } ?>
-
nbNotRead (); ?>
-
0 ? '' : ''; ?>
- 0 ? '(' . $not_read . ') ' : ''; ?>
- name(); ?>
+ 0 ? '(' . $not_read . ') ' : ''), $feed->name(); ?>
0 ? '' : ''; ?>
@@ -102,5 +88,19 @@
-
+
+
+
diff --git a/app/views/javascript/main.phtml b/app/views/javascript/main.phtml
index 03c60cc52..f6700330a 100644
--- a/app/views/javascript/main.phtml
+++ b/app/views/javascript/main.phtml
@@ -403,7 +403,18 @@ function init_nav_entries() {
});
}
-$(document).ready (function () {
+function init_templates() {
+ $('#aside_flux').on('click', '.dropdown-toggle', function () {
+ if ($(this).nextAll('.dropdown-menu').length === 0) {
+ var feed_id = $(this).data('fid'),
+ feed_web = $(this).data('fweb'),
+ template = $('#feed_config_template').html().replace(/!!!!!!/g, feed_id).replace('http://example.net/', feed_web);
+ $(this).attr('href', '#dropdown-' + feed_id).prev('.dropdown-target').attr('id', 'dropdown-' + feed_id).parent().append(template);
+ }
+ });
+}
+
+$(function () {
if(is_reader_mode()) {
hide_posts = false;
}
@@ -412,4 +423,5 @@ $(document).ready (function () {
init_shortcuts ();
init_stream_delegates($('#stream'));
init_nav_entries();
+ init_templates();
});