<%@ Page Language="c#" CodeBehind="GroupsIndex.aspx.cs" AutoEventWireup="false" Inherits="edu.jhu.Cas.Web.GroupsIndex" %>

<%@ Import Namespace="System.IO" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<%@ Import Namespace="edu.jhu.Cas.Util" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Pragma" content="no-cache" />
    <link href="cjobs.css" rel="stylesheet" />
    <base target="content" />
</head>
<body style="padding:0 5 0 0">
    <h4>
        Groups</h4>
    <table>
        <tr>
            <td>
                <%	if (groups.Length == 0) {%>
                <i>No group memberships</i>
                <%} else foreach (edu.jhu.Cas.Util.Group g in groups) {
                            string css = "normal";
                            if (g.Owner == wsid) css = "gowner";
                            else if (!g.UserIsMember) css = "gnotmember";
           
                %>
                <a href="groupscontent.aspx?gid=<%=g.GID%>" class="<%=css %>" target="content">
                    <%=g.Name%>
                </a>
            </td>
        </tr>
        <tr>
            <td>
                <%}%>
            </td>
        </tr>
    </table>
</body>
</html>
