Conjunto 0a4d2b0 en seguimiento_proyectos


Ignorar:
Fecha y hora:
12/07/2017 15:40:23 (hace 7 años)
Autor:
aosorio <aosorio@…>
Branches:
master, desarrollo
Children:
a7b5a73
Parents:
142c186
Mensaje:

Agregada la tabla y los iconos para representar las acciones del usuario

Ubicación:
sepai
Ficheros:
2 editados

Leyenda

No modificado
Añadido
Eliminado
  • sepai/templates/users/bitacora.html

    r142c186 r0a4d2b0  
    1313    <div class="panel-sepai">
    1414    {% block area-contenido %}
    15         <h1>Mi actividad</h1>
    16         <ul>
    17           {% for x in log %}
    18           <li>
    19             {{ x.user__first_name }}
    20             {{ x.action_time }}
    21             {{ x.content_type__model }}
    22             {{ x.object_repr }}
    23             {{ x.action_flag }}
    24           </li>
    25           {% endfor %}
    26         </ul>
     15        <table border="3px" cellpadding="10px" cellspacing="10px" style="width:100%">
     16            <tr>
     17                <td>
     18                  <b>Usuario</b>
     19                </td>
     20                <td>
     21                  <b>Fecha y Hora</b>
     22                </td>
     23                <td>
     24                  <b>Modelo sobre el que actuo</b>
     25                </td>
     26                <td>
     27                  <b>nombre del objeto</b>
     28                </td>
     29                <td>
     30                  <b>Tipo de acción</b>
     31                </td>
     32            </tr>
     33            {% for x in log %}
     34            <tr>
     35                <td>{{ x.user__first_name }}</td>
     36                <td>{{ x.action_time }}</td>
     37                <td>{{ x.content_type__model }}</td>
     38                <td>{{ x.object_repr }}</td>
     39                {% if x.action_flag == 1 %}
     40                    <!--td>ADDITION</td-->
     41                    <td><span class="glyphicon glyphicon-accion glyphicon-plus"></span></td>
     42                {% elif x.action_flag == 2 %}
     43                    <!--td>CHANGE</td-->
     44                    <td><span class="glyphicon glyphicon-accion glyphicon-pencil"></span></td>
     45                {% else %}
     46                    <!--td>DELETION</td-->
     47                    <td><span class="glyphicon glyphicon-accion glyphicon-remove"></span></td>
     48                {% endif %}
     49            </tr>
     50            {% endfor %}
     51        </table>
    2752    {% endblock area-contenido %}
    2853    </div>
  • sepai/users/urls.py

    r142c186 r0a4d2b0  
    2828    url(r'^perfil/(?P<pk>\d+)/$', ModalsPerfil.as_view(),
    2929        name="modal_perfil"),
    30     url(r'^recent-activity/$', login_required(RecentActivityAjaxView.as_view()),
     30    #url(r'^recent-activity/$', login_required(RecentActivityAjaxView.as_view()),
     31    #    name="recent_activity"),
     32    url(r'^recent-activity/$', RecentActivityAjaxView.as_view(),
    3133        name="recent_activity"),
    3234    url(r'^403/$', Forbidden.as_view(), name="403error"),
Nota: Vea TracChangeset para ayuda en el uso del visor de conjuntos de cambios.