<%@ Page Title="Carpetas Compartidas Conmigo" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true"
    CodeBehind="SharedHierarchies.aspx.cs" Inherits="PDI.Web.SharedHierarchiesPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <section id="page-shared-hierarchies" class="page">
        <h2>Carpetas Compartidas Conmigo</h2>
        <asp:Repeater ID="rptSharedHierarchies" runat="server">
            <HeaderTemplate>
                <table class="shared-table" style="width:100%; border-collapse:collapse; font-size:0.9rem;">
                    <thead>
                        <tr style="background:var(--wine-dark,#5a1a3a); color:#fff;">
                            <th style="padding:8px 12px; text-align:left;">Nombre de la Carpeta</th>
                            <th style="padding:8px 12px; text-align:left;">Compartido Por</th>
                            <th style="padding:8px 12px; text-align:left;">Fecha</th>
                            <th style="padding:8px 12px; text-align:left;">Acciones</th>
                        </tr>
                    </thead>
                    <tbody>
            </HeaderTemplate>
            <ItemTemplate>
                <tr style="border-bottom:1px solid #eee;">
                    <td style="padding:6px 12px;"><%# Eval("Hierarchies.Name") %></td>
                    <td style="padding:6px 12px;"><%# Eval("Users1.FullName") %></td>
                    <td style="padding:6px 12px;"><%# Eval("Created", "{0:yyyy-MM-dd HH:mm}") %></td>
                    <td style="padding:6px 12px;">
                        <a href='<%# "SharedHierarchyViewer.aspx?ID=" + Eval("ShareLink") %>' target="_blank"><i class="fas fa-folder-open"></i> Ver Carpeta</a>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                    </tbody>
                </table>
            </FooterTemplate>
        </asp:Repeater>
        <asp:Label ID="lblEmpty" runat="server" Text="No hay carpetas compartidas." Visible="false"
            style="display:block; text-align:center; color:#999; margin-top:20px;" />
    </section>
</asp:Content>
