Commit 84bd56156aecbaede79ec372509d1e44a46452b3

  • avatar
  • arvind
  • Wed Sep 03 20:08:26 IST 2014
Collapse user and tags div after user clicks on a entry.
Remove href from tags and user entries.
Adding a class to make the cursor a pointer when a user hovers over
entries.
  • Diff rendering mode:
  • inline
  • side by side

swtr/static/css/swtmaker.css

147.nav-btn {147.nav-btn {
148 margin-left: 10px;148 margin-left: 10px;
149}149}
150
150#tag-cloud {151#tag-cloud {
151 display: none;152 display: none;
152}153}
154
153#gallery {155#gallery {
154 margin-top: 10em;156 margin-top: 10em;
155}157}
158
156#tags-tag-cloud svg {159#tags-tag-cloud svg {
157 position: absolute;160 position: absolute;
158 left:100px;161 left:100px;
163 height:100%;163 height:100%;
164 width: 100%;164 width: 100%;
165}165}
166
166#user-tag-cloud svg {167#user-tag-cloud svg {
167 position: absolute;168 position: absolute;
168 height:100%;169 height:100%;
169 top: 40em;170 top: 40em;
170 left:100px;171 left:100px;
171 width: 100%172 width: 100%
173}
174
175.mCursor {
176 cursor: pointer;
172}177}
173178
174.spinner {179.spinner {

swtr/static/js/main.js

800 }, 1000);800 }, 1000);
801 },801 },
802 setUp: function() {802 setUp: function() {
803 $("#tag-list").collapse('hide');
804 $("#user-list").collapse('hide');
803 if(!$(this.el).is(':visible')) {805 if(!$(this.el).is(':visible')) {
804 $(this.el).show();806 $(this.el).show();
805 }807 }

swtr/templates/index.html

416 <script type="text/template" id="linked-data-list-template">416 <script type="text/template" id="linked-data-list-template">
417 <li class="list-group-item">417 <li class="list-group-item">
418 <span class="badge"> <%= weight %> </span>418 <span class="badge"> <%= weight %> </span>
419 <a href="#"><p><%= who %></p></a>
419 <a class="mCursor"><p><%= who %></p></a>
420 </li>420 </li>
421 </script>421 </script>
422 <script type="text/template" id="loader-template">422 <script type="text/template" id="loader-template">