Add explicit View button to activities list
This commit is contained in:
@@ -576,13 +576,14 @@ async def ui_activities_page(request: Request):
|
|||||||
rows += f'''
|
rows += f'''
|
||||||
<tr class="border-b border-dark-500 hover:bg-dark-600 transition-colors">
|
<tr class="border-b border-dark-500 hover:bg-dark-600 transition-colors">
|
||||||
<td class="py-3 px-4"><span class="px-2 py-1 {type_color} text-white text-xs font-medium rounded">{activity_type}</span></td>
|
<td class="py-3 px-4"><span class="px-2 py-1 {type_color} text-white text-xs font-medium rounded">{activity_type}</span></td>
|
||||||
<td class="py-3 px-4">
|
<td class="py-3 px-4 text-white">{obj.get("name", "Untitled")}</td>
|
||||||
<a href="/ui/activity/{activity_index}" class="text-blue-400 hover:text-blue-300 font-medium">{obj.get("name", "Untitled")}</a>
|
|
||||||
</td>
|
|
||||||
<td class="py-3 px-4">
|
<td class="py-3 px-4">
|
||||||
<a href="/ui/user/{actor_name}" class="text-gray-400 hover:text-blue-300">{actor_name}</a>
|
<a href="/ui/user/{actor_name}" class="text-gray-400 hover:text-blue-300">{actor_name}</a>
|
||||||
</td>
|
</td>
|
||||||
<td class="py-3 px-4 text-gray-400">{activity.get("published", "")[:10]}</td>
|
<td class="py-3 px-4 text-gray-400">{activity.get("published", "")[:10]}</td>
|
||||||
|
<td class="py-3 px-4">
|
||||||
|
<a href="/ui/activity/{activity_index}" class="px-3 py-1 bg-blue-600 hover:bg-blue-700 text-white text-xs font-medium rounded transition-colors">View</a>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
'''
|
'''
|
||||||
content = f'''
|
content = f'''
|
||||||
@@ -595,6 +596,7 @@ async def ui_activities_page(request: Request):
|
|||||||
<th class="py-3 px-4 font-medium text-gray-300">Object</th>
|
<th class="py-3 px-4 font-medium text-gray-300">Object</th>
|
||||||
<th class="py-3 px-4 font-medium text-gray-300">Actor</th>
|
<th class="py-3 px-4 font-medium text-gray-300">Actor</th>
|
||||||
<th class="py-3 px-4 font-medium text-gray-300">Published</th>
|
<th class="py-3 px-4 font-medium text-gray-300">Published</th>
|
||||||
|
<th class="py-3 px-4 font-medium text-gray-300"></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|||||||
Reference in New Issue
Block a user