aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorStefan Parviainen <saparvia@caterva.eu>2014-12-29 22:07:40 +0100
committerStefan Parviainen <saparvia@caterva.eu>2014-12-29 22:07:40 +0100
commite69e59d260c311ceae4cbde3239c33d8caea4553 (patch)
treefc281ec50758b89f38d170ad1ba47582138acc83 /view
parent40a327b68fe1bb37bbc2fc6bc1c6d761ee564898 (diff)
downloadvolse-hubzilla-e69e59d260c311ceae4cbde3239c33d8caea4553.tar.gz
volse-hubzilla-e69e59d260c311ceae4cbde3239c33d8caea4553.tar.bz2
volse-hubzilla-e69e59d260c311ceae4cbde3239c33d8caea4553.zip
Don't show current channel separately in channel manager, highlight it instead
Diffstat (limited to 'view')
-rw-r--r--view/css/mod_manage.css30
-rwxr-xr-xview/tpl/channel.tpl4
-rwxr-xr-xview/tpl/channels.tpl8
3 files changed, 12 insertions, 30 deletions
diff --git a/view/css/mod_manage.css b/view/css/mod_manage.css
index 161b46757..bb7ef566d 100644
--- a/view/css/mod_manage.css
+++ b/view/css/mod_manage.css
@@ -1,7 +1,6 @@
#channels-selected {
color: #666666;
font-size: 0.8em;
-
}
#channels-desc {
@@ -14,33 +13,23 @@
.channels-break {
margin-bottom: 15px;
}
-#selected-channel {
- float: left;
- margin-left: 0;
-}
-
-.channels-end.selected {
- clear: both;
-}
-
-#selected-channel .channel-selection {
- clear: both;
- margin: 0 auto 0 auto;
-}
.channel-selection-default {
font-size: 0.8em;
margin-bottom: 10px;
}
-#all-channels .channel-selection {
+.channel-selection {
width: 12em;
height: 16em;
float: left;
- margin: 0 15px 15px 0;
+ text-align: center;
}
-.channels-end {
- clear: both;
+
+.channel-selection img {
+ display: block;
+ margin-left: auto;
+ margin-right: auto;
}
.channel-selection-name-link {
@@ -50,7 +39,6 @@
.channel-selection-name-link .channel-name {
padding-top: 10px;
- text-align: left;
word-wrap: break-word;
overflow: hidden;
}
@@ -59,3 +47,7 @@
clear: both;
padding-top: 10px;
}
+
+.selected-channel img {
+ border: 2px solid #ff0000;
+}
diff --git a/view/tpl/channel.tpl b/view/tpl/channel.tpl
index c151ba8b2..af80e7b4d 100755
--- a/view/tpl/channel.tpl
+++ b/view/tpl/channel.tpl
@@ -1,4 +1,4 @@
-<div class="channel-selection">
+<div class='channel-selection {{if $selected == $channel.channel_id}}selected-channel{{/if}}'>
{{if $channel.default_links}}
{{if $channel.default}}
<div class="channel-selection-default default"><i class="icon-check"></i> {{$msg_default}}</div>
@@ -10,5 +10,3 @@
<div class="channels-notifications-wrapper"><a href='manage/{{$channel.channel_id}}/message' style="{{if $channel.mail != 0}}color:#c60032;{{/if}}" title='{{$channel.mail|string_format:$mail_format}}'><i class="icon-envelope"></i> {{$channel.mail}}</a>&nbsp;<a href='manage/{{$channel.channel_id}}/connections/ifpending' style="{{if $channel.intros != 0}}color:#c60032;{{/if}}" title='{{$channel.intros|string_format:$intros_format}}'><i class="icon-user"></i> {{$channel.intros}}</a></div>
<a href="{{$channel.link}}" class="channel-selection-name-link" title="{{$channel.channel_name}}"><div class="channel-name">{{$channel.channel_name}}</div></a>
</div>
-
-<div class="channel-selection-end"></div>
diff --git a/view/tpl/channels.tpl b/view/tpl/channels.tpl
index 0dec68a53..26d0e14d2 100755
--- a/view/tpl/channels.tpl
+++ b/view/tpl/channels.tpl
@@ -13,14 +13,6 @@
{{$channel_usage_message}}
</div>
{{/if}}
-{{if $selected}}
-<div id="selected-channel">
-<div id="channels-selected">{{$msg_selected}}</div>
-{{include file="channel.tpl" channel=$selected}}
-</div>
-<div class="channels-end selected"></div>
-{{/if}}
-<br />
<div id="channels-desc" class="descriptive-text">{{$desc}}</div>
<div id="all-channels">