diff --git a/icon/write64x64.gif b/icon/write64x64.gif new file mode 100644 index 000000000..b73af421c Binary files /dev/null and b/icon/write64x64.gif differ diff --git a/swad_changelog.h b/swad_changelog.h index e614f635c..e23b79f84 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -116,13 +116,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 15.82.2 (2015-12-30)" +#define Log_PLATFORM_VERSION "SWAD 15.82.3 (2015-12-30)" #define CSS_FILE "swad15.80.css" #define JS_FILE "swad15.77.7.js" // Number of lines (includes comments but not blank lines) has been got with the following command: // nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*.h sql/swad*.sql | tail -1 /* + Version 15.82.3: Dec 30, 2015 Contextual link to write a new social post. (189199 lines) Version 15.82.2: Dec 30, 2015 Current timeline is displayed below the form to write a new social post. (189183 lines) Version 15.82.1: Dec 29, 2015 Public social posts are displayed in timeline. (189176 lines) Version 15.82: Dec 29, 2015 Public social post is received and stored in a new database table. (189136 lines) diff --git a/swad_social.c b/swad_social.c index f9280929c..028f33e14 100644 --- a/swad_social.c +++ b/swad_social.c @@ -106,6 +106,7 @@ extern struct Globals Gbl; /***************************** Private prototypes ****************************/ /*****************************************************************************/ +static void Soc_PutLinkToWriteANewPost (void); static void Soc_GetAndWriteSocialPost (long PstCod); static unsigned long Soc_ShowTimeline (const char *Query); @@ -116,6 +117,20 @@ static void Soc_StartFormGoToAction (Soc_SocialEvent_t SocialEvent, static void Soc_GetEventSummary (Soc_SocialEvent_t SocialEvent,long Cod, char *SummaryStr,unsigned MaxChars); +/*****************************************************************************/ +/*********************** Show social activity (timeline) *********************/ +/*****************************************************************************/ + +static void Soc_PutLinkToWriteANewPost (void) + { + extern const char *Txt_New_comment; + + fprintf (Gbl.F.Out,"