//------------------------------------------------------------------------------
// <copyright company="Telligent Systems">
//     Copyright (c) Telligent Systems Corporation.  All rights reserved.
// </copyright> 
//------------------------------------------------------------------------------

using System.Web.UI;
using CommunityServer.Components;
using CommunityServer.Galleries.Components;

namespace CommunityServer.Galleries.Controls
{
	/// <summary>
	/// Renders the name/description of the currently selected blog
	/// </summary>
	public class CurrentGalleryControl : Control
	{
		protected override void Render(HtmlTextWriter writer)
		{
			Gallery gallery = Galleries.GetGallery() ;

			if(gallery != null)
				writer.Write(string.Format(ResourceManager.GetString("Gallery_Current"), gallery.Name));
		}
	}
}
