|
7 | 7 | </:item>
|
8 | 8 | <:item is_full_width />
|
9 | 9 | <:item>
|
10 |
| - <ValentineWeb.WorkspaceLive.Components.PresenceIndicatorComponent.render presence={ |
11 |
| - @presence |
12 |
| - } /> |
| 10 | + <ValentineWeb.WorkspaceLive.Components.PresenceIndicatorComponent.render |
| 11 | + current_user={@current_user} |
| 12 | + presence={@presence} |
| 13 | + /> |
13 | 14 | </:item>
|
14 | 15 | <:item>
|
15 | 16 | <.button
|
|
134 | 135 | <:item
|
135 | 136 | is_selected={@active_module == "Index" || @active_module == "Show"}
|
136 | 137 | navigate={"/workspaces/#{@workspace_id}"}
|
| 138 | + class="d-flex flex-items-center flex-justify-between" |
137 | 139 | >
|
138 |
| - <.octicon name="tools-16" /> {gettext("Workspaces")} |
| 140 | + <span><.octicon name="tools-16" /> {gettext("Workspaces")}</span> |
| 141 | + <ValentineWeb.WorkspaceLive.Components.PresenceIndicatorComponent.render |
| 142 | + current_user={@current_user} |
| 143 | + presence={@presence} |
| 144 | + active_module={["Index", "Show"]} |
| 145 | + workspace_id={@workspace_id} |
| 146 | + /> |
139 | 147 | </:item>
|
140 | 148 | <:item
|
141 | 149 | :if={@workspace_id}
|
142 | 150 | is_selected={@active_module == "ApplicationInformation"}
|
143 | 151 | navigate={~p"/workspaces/#{@workspace_id}/application_information"}
|
| 152 | + class="d-flex flex-items-center flex-justify-between" |
144 | 153 | >
|
145 |
| - <.octicon name="star-16" /> {gettext("Application Information")} |
| 154 | + <span><.octicon name="star-16" /> {gettext("Application Information")}</span> |
| 155 | + <ValentineWeb.WorkspaceLive.Components.PresenceIndicatorComponent.render |
| 156 | + current_user={@current_user} |
| 157 | + presence={@presence} |
| 158 | + active_module="ApplicationInformation" |
| 159 | + workspace_id={@workspace_id} |
| 160 | + /> |
146 | 161 | </:item>
|
147 | 162 | <:item
|
148 | 163 | :if={@workspace_id}
|
149 | 164 | is_selected={@active_module == "Architecture"}
|
150 | 165 | navigate={~p"/workspaces/#{@workspace_id}/architecture"}
|
| 166 | + class="d-flex flex-items-center flex-justify-between" |
151 | 167 | >
|
152 |
| - <.octicon name="container-16" /> {gettext("Architecture")} |
| 168 | + <span><.octicon name="container-16" /> {gettext("Architecture")}</span> |
| 169 | + <ValentineWeb.WorkspaceLive.Components.PresenceIndicatorComponent.render |
| 170 | + current_user={@current_user} |
| 171 | + presence={@presence} |
| 172 | + active_module="Architecture" |
| 173 | + workspace_id={@workspace_id} |
| 174 | + /> |
153 | 175 | </:item>
|
154 | 176 | <:item
|
155 | 177 | :if={@workspace_id}
|
156 | 178 | is_selected={@active_module == "DataFlow"}
|
157 | 179 | navigate={~p"/workspaces/#{@workspace_id}/data_flow"}
|
| 180 | + class="d-flex flex-items-center flex-justify-between" |
158 | 181 | >
|
159 |
| - <.octicon name="workflow-16" /> {gettext("Data Flow")} |
| 182 | + <span><.octicon name="workflow-16" /> {gettext("Data Flow")}</span> |
| 183 | + <ValentineWeb.WorkspaceLive.Components.PresenceIndicatorComponent.render |
| 184 | + current_user={@current_user} |
| 185 | + presence={@presence} |
| 186 | + active_module="DataFlow" |
| 187 | + workspace_id={@workspace_id} |
| 188 | + /> |
160 | 189 | </:item>
|
161 | 190 | <:item
|
162 | 191 | :if={@workspace_id}
|
163 | 192 | is_selected={@active_module == "Assumption"}
|
164 | 193 | navigate={~p"/workspaces/#{@workspace_id}/assumptions"}
|
| 194 | + class="d-flex flex-items-center flex-justify-between" |
165 | 195 | >
|
166 |
| - <.octicon name="discussion-closed-16" /> {gettext("Assumptions")} |
| 196 | + <span><.octicon name="discussion-closed-16" /> {gettext("Assumptions")}</span> |
| 197 | + <ValentineWeb.WorkspaceLive.Components.PresenceIndicatorComponent.render |
| 198 | + current_user={@current_user} |
| 199 | + presence={@presence} |
| 200 | + active_module="Assumption" |
| 201 | + workspace_id={@workspace_id} |
| 202 | + /> |
167 | 203 | </:item>
|
168 | 204 | <:item
|
169 | 205 | :if={@workspace_id}
|
170 | 206 | is_selected={@active_module == "Threat"}
|
171 | 207 | navigate={~p"/workspaces/#{@workspace_id}/threats"}
|
| 208 | + class="d-flex flex-items-center flex-justify-between" |
172 | 209 | >
|
173 |
| - <.octicon name="squirrel-16" /> {gettext("Threats")} |
| 210 | + <span><.octicon name="squirrel-16" /> {gettext("Threats")}</span> |
| 211 | + <ValentineWeb.WorkspaceLive.Components.PresenceIndicatorComponent.render |
| 212 | + current_user={@current_user} |
| 213 | + presence={@presence} |
| 214 | + active_module="Threat" |
| 215 | + workspace_id={@workspace_id} |
| 216 | + /> |
174 | 217 | </:item>
|
175 | 218 | <:item
|
176 | 219 | :if={@workspace_id}
|
177 | 220 | is_selected={@active_module == "Mitigation"}
|
178 | 221 | navigate={~p"/workspaces/#{@workspace_id}/mitigations"}
|
| 222 | + class="d-flex flex-items-center flex-justify-between" |
179 | 223 | >
|
180 |
| - <.octicon name="check-circle-16" /> {gettext("Mitigations")} |
| 224 | + <span><.octicon name="check-circle-16" /> {gettext("Mitigations")}</span> |
| 225 | + <ValentineWeb.WorkspaceLive.Components.PresenceIndicatorComponent.render |
| 226 | + current_user={@current_user} |
| 227 | + presence={@presence} |
| 228 | + active_module="Mitigation" |
| 229 | + workspace_id={@workspace_id} |
| 230 | + /> |
181 | 231 | </:item>
|
182 | 232 | </.side_nav>
|
183 | 233 | <.side_nav :if={@workspace_id} aria_label="model" class="mt-4" is_border>
|
184 | 234 | <:item
|
185 |
| - is_selected={@active_module == "Report"} |
| 235 | + is_selected={@active_module == "ThreatModel"} |
186 | 236 | navigate={~p"/workspaces/#{@workspace_id}/threat_model"}
|
| 237 | + class="d-flex flex-items-center flex-justify-between" |
187 | 238 | >
|
188 |
| - <.octicon name="file-badge-16" /> {gettext("Threat Model")} |
| 239 | + <span><.octicon name="file-badge-16" /> {gettext("Threat Model")}</span> |
| 240 | + <ValentineWeb.WorkspaceLive.Components.PresenceIndicatorComponent.render |
| 241 | + current_user={@current_user} |
| 242 | + presence={@presence} |
| 243 | + active_module="ThreatModel" |
| 244 | + workspace_id={@workspace_id} |
| 245 | + /> |
189 | 246 | </:item>
|
190 | 247 | </.side_nav>
|
191 | 248 | <.side_nav :if={@workspace_id} aria_label="reference-packs" class="mt-4" is_border>
|
192 | 249 | <:item
|
193 | 250 | is_selected={@active_module == "ReferencePacks"}
|
194 | 251 | navigate={~p"/workspaces/#{@workspace_id}/reference_packs"}
|
| 252 | + class="d-flex flex-items-center flex-justify-between" |
195 | 253 | >
|
196 |
| - <.octicon name="repo-16" /> {gettext("Reference Packs")} |
| 254 | + <span><.octicon name="repo-16" /> {gettext("Reference Packs")}</span> |
| 255 | + <ValentineWeb.WorkspaceLive.Components.PresenceIndicatorComponent.render |
| 256 | + current_user={@current_user} |
| 257 | + presence={@presence} |
| 258 | + active_module="ReferencePacks" |
| 259 | + workspace_id={@workspace_id} |
| 260 | + /> |
197 | 261 | </:item>
|
198 | 262 | <:item
|
199 | 263 | is_selected={@active_module == "SRTM"}
|
200 | 264 | navigate={~p"/workspaces/#{@workspace_id}/srtm"}
|
| 265 | + class="d-flex flex-items-center flex-justify-between" |
201 | 266 | >
|
202 |
| - <.octicon name="tasklist-16" /> {gettext("SRTM View")} |
| 267 | + <span><.octicon name="tasklist-16" /> {gettext("SRTM View")}</span> |
| 268 | + <ValentineWeb.WorkspaceLive.Components.PresenceIndicatorComponent.render |
| 269 | + current_user={@current_user} |
| 270 | + presence={@presence} |
| 271 | + active_module="SRTM" |
| 272 | + workspace_id={@workspace_id} |
| 273 | + /> |
203 | 274 | </:item>
|
204 | 275 | <:item
|
205 | 276 | is_selected={@active_module == "Controls"}
|
206 | 277 | navigate={~p"/workspaces/#{@workspace_id}/controls"}
|
| 278 | + class="d-flex flex-items-center flex-justify-between" |
207 | 279 | >
|
208 |
| - <.octicon name="shield-lock-16" /> {gettext("NIST Controls")} |
| 280 | + <span><.octicon name="shield-lock-16" /> {gettext("NIST Controls")}</span> |
| 281 | + <ValentineWeb.WorkspaceLive.Components.PresenceIndicatorComponent.render |
| 282 | + current_user={@current_user} |
| 283 | + presence={@presence} |
| 284 | + active_module="Controls" |
| 285 | + workspace_id={@workspace_id} |
| 286 | + /> |
209 | 287 | </:item>
|
210 | 288 | </.side_nav>
|
211 | 289 | </:sidebar>
|
|
0 commit comments