|
167 | 167 | <span data-localize="sidebar.settings"></span>
|
168 | 168 | </a>
|
169 | 169 | <% if (!countlyType) { %>
|
170 |
| - <% if(intercom && member['global_admin'] || config.autonomous) { %> |
171 |
| - <a class="item activate_intercom"> |
| 170 | + <% if((intercom && member['global_admin'] || config.autonomous) && (typeof feedbackLink === "string")) { %> |
| 171 | + <a target="_new" href="<%= feedbackLink %>" class="item"> |
172 | 172 | <i class="ion-android-textsms icon"></i>
|
173 | 173 | <span data-localize="common.feedback-and-support"></span>
|
174 | 174 | </a>
|
175 | 175 | <% } %>
|
176 |
| - <a class="item" href="http://resources.count.ly/" target="_blank"> |
177 |
| - <i class="ion-android-document icon"></i> |
178 |
| - <span data-localize="common.documentation"></span> |
| 176 | + <% if((intercom && member['global_admin'] || config.autonomous) && (typeof feedbackLink === "boolean" && feedbackLink)) { %> |
| 177 | + <a class="item activate_intercom"> |
| 178 | + <i class="ion-android-textsms icon"></i> |
| 179 | + <span data-localize="common.feedback-and-support"></span> |
179 | 180 | </a>
|
| 181 | + <% } %> |
| 182 | + <% if (typeof documentationLink === "string") { %> |
| 183 | + <a class="item" href="<%= documentationLink %>" target="_blank"> |
| 184 | + <i class="ion-android-document icon"></i> |
| 185 | + <span data-localize="common.documentation"></span> |
| 186 | + </a> |
| 187 | + <% } %> |
| 188 | + <% if (typeof documentationLink === "boolean" && documentationLink) { %> |
| 189 | + <a class="item" href="http://resources.count.ly" target="_blank"> |
| 190 | + <i class="ion-android-document icon"></i> |
| 191 | + <span data-localize="common.documentation"></span> |
| 192 | + </a> |
| 193 | + <% } %> |
180 | 194 | <% } else { %>
|
181 |
| - <% if(intercom && member['global_admin'] || config.autonomous) { %> |
| 195 | + <% if((intercom && member['global_admin'] || config.autonomous) && (typeof feedbackLink === "string")) { %> |
| 196 | + <a target="_new" href="<% feedbackLink %>" class="item"> |
| 197 | + <i class="ion-android-textsms icon"></i> |
| 198 | + <span data-localize="common.provide-feedback"></span> |
| 199 | + </a> |
| 200 | + <% } %> |
| 201 | + <% if((intercom && member['global_admin'] || config.autonomous) && (typeof feedbackLink === "boolean" && feedbackLink)) { %> |
182 | 202 | <a class="item activate_intercom">
|
183 | 203 | <i class="ion-android-textsms icon"></i>
|
184 | 204 | <span data-localize="common.provide-feedback"></span>
|
|
188 | 208 | <i class="ion-help-buoy icon"></i>
|
189 | 209 | <span data-localize="common.support"></span>
|
190 | 210 | </a>
|
191 |
| - <a class="item" href="http://resources.count.ly/" target="_blank"> |
192 |
| - <i class="ion-android-document icon"></i> |
193 |
| - <span data-localize="common.documentation"></span> |
194 |
| - </a> |
| 211 | + <% if (documentationLink) { %> |
| 212 | + <a class="item" href="http://resources.count.ly/" target="_blank"> |
| 213 | + <i class="ion-android-document icon"></i> |
| 214 | + <span data-localize="common.documentation"></span> |
| 215 | + </a> |
| 216 | + <% } %> |
195 | 217 | <% } %>
|
196 | 218 | <a href="#/manage/token_manager" class="item">
|
197 | 219 | <i class="ion-key icon"></i>
|
|
0 commit comments